Logger.Warn Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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