Share via


Logger.Error Method

Definition

Overloads

Error(String, String)

Logs an error event with the specified parameters.

Error(String, String, Exception)

Logs an error event with the specified parameters.

Error(String, String)

Logs an error event with the specified parameters.

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

Parameters

caller
String

The source of the error

message
String

The error message

Applies to

Error(String, String, Exception)

Logs an error event with the specified parameters.

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

Parameters

caller
String

The source of the error

message
String

The error message

e
Exception

The exception that is the source of the error

Applies to