Düzenle

Aracılığıyla paylaş


LoggerExtensions.Error(Logger, Int32, String, Exception) Method

Definition

Writes a log entry at the Error severity level, with the specified log id code. Error is suitable for problem conditions that require immediate administrative response.

public static void Error (this Orleans.Runtime.Logger logger, int logCode, string message, Exception exception = default);
static member Error : Orleans.Runtime.Logger * int * string * Exception -> unit
<Extension()>
Public Sub Error (logger As Logger, logCode As Integer, message As String, Optional exception As Exception = Nothing)

Parameters

logger
Logger

The logger

logCode
Int32

The log code associated with this message.

message
String

The error message to log.

exception
Exception

An exception related to the error, if any.

Applies to