Bewerken

Delen via


LoggerExtensions.Warn Method

Definition

Overloads

Warn(Logger, Int32, String, Exception)

Writes a log entry at the Warning severity level, with the specified log id code. Warning is suitable for problem conditions that the system or application can handle by itself, but that the administrator should be aware of. Typically these are situations that are expected but that may eventually require an administrative response if they recur. Warning is lower than Error.

Warn(Logger, Int32, String, Object[])

Writes a log entry at the Warning severity level, with the specified log id code. Warning is suitable for problem conditions that the system or application can handle by itself, but that the administrator should be aware of. Typically these are situations that are expected but that may eventually require an administrative response if they recur. Warning is lower than Error.

Warn(Logger, Int32, String, Exception)

Writes a log entry at the Warning severity level, with the specified log id code. Warning is suitable for problem conditions that the system or application can handle by itself, but that the administrator should be aware of. Typically these are situations that are expected but that may eventually require an administrative response if they recur. Warning is lower than Error.

public static void Warn (this Orleans.Runtime.Logger logger, int logCode, string message, Exception exception = default);
static member Warn : Orleans.Runtime.Logger * int * string * Exception -> unit
<Extension()>
Public Sub Warn (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 warning message to log.

exception
Exception

An exception related to the warning, if any.

Applies to

Warn(Logger, Int32, String, Object[])

Writes a log entry at the Warning severity level, with the specified log id code. Warning is suitable for problem conditions that the system or application can handle by itself, but that the administrator should be aware of. Typically these are situations that are expected but that may eventually require an administrative response if they recur. Warning is lower than Error.

public static void Warn (this Orleans.Runtime.Logger logger, int logCode, string format, params object[] args);
static member Warn : Orleans.Runtime.Logger * int * string * obj[] -> unit
<Extension()>
Public Sub Warn (logger As Logger, logCode As Integer, format As String, ParamArray args As Object())

Parameters

logger
Logger

The logger

logCode
Int32

The log code associated with this message.

format
String

A standard format string, suitable for String.Format.

args
Object[]

Any arguments to the format string.

Applies to