Logger.Error 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
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
The exception that is the source of the error