Share via


Logger.Warn Method

Definition

Overloads

Warn(String, String)

Logs a warning event with the specified parameters.

Warn(String, String, Boolean)

Logs a warning event with the specified parameters.

Warn(String, String)

Logs a warning event with the specified parameters.

public static void Warn (string caller, string message);
static member Warn : string * string -> unit
Public Shared Sub Warn (caller As String, message As String)

Parameters

caller
String

The warning source

message
String

A warning

Applies to

Warn(String, String, Boolean)

Logs a warning event with the specified parameters.

public static void Warn (string caller, string message, bool eventLog);
static member Warn : string * string * bool -> unit
Public Shared Sub Warn (caller As String, message As String, eventLog As Boolean)

Parameters

caller
String

The warning source

message
String

A warning

eventLog
Boolean

TRUE to write to the Windows event log; otherwise, FALSE

Applies to