Compartir a través de


ILogger.LogError Method

Definition

Overloads

LogError(String, Object[])

Formats and writes an error log message.

LogError(EventId, String, Object[])

Formats and writes an error log message.

LogError(Exception, String, Object[])

Formats and writes an error log message.

LogError(EventId, Exception, String, Object[])

Formats and writes an error log message.

LogError(String, Object[])

Formats and writes an error log message.

public:
 void LogError(System::String ^ message, ... cli::array <System::Object ^> ^ args);
public void LogError (string message, params object[] args);
abstract member LogError : string * obj[] -> unit
Public Sub LogError (message As String, ParamArray args As Object())

Parameters

message
String

Format string of the scope message.

args
Object[]

An object array that contains zero or more objects to format.

Applies to

LogError(EventId, String, Object[])

Formats and writes an error log message.

public:
 void LogError(Microsoft::Xrm::Sdk::PluginTelemetry::EventId ^ eventId, System::String ^ message, ... cli::array <System::Object ^> ^ args);
public void LogError (Microsoft.Xrm.Sdk.PluginTelemetry.EventId eventId, string message, params object[] args);
abstract member LogError : Microsoft.Xrm.Sdk.PluginTelemetry.EventId * string * obj[] -> unit
Public Sub LogError (eventId As EventId, message As String, ParamArray args As Object())

Parameters

eventId
EventId

Id of the event.

message
String

Format string of the scope message.

args
Object[]

An object array that contains zero or more objects to format.

Applies to

LogError(Exception, String, Object[])

Formats and writes an error log message.

public:
 void LogError(Exception ^ exception, System::String ^ message, ... cli::array <System::Object ^> ^ args);
public void LogError (Exception exception, string message, params object[] args);
abstract member LogError : Exception * string * obj[] -> unit
Public Sub LogError (exception As Exception, message As String, ParamArray args As Object())

Parameters

exception
Exception

The exception related to this entry.

message
String

Format string of the scope message.

args
Object[]

An object array that contains zero or more objects to format.

Applies to

LogError(EventId, Exception, String, Object[])

Formats and writes an error log message.

public:
 void LogError(Microsoft::Xrm::Sdk::PluginTelemetry::EventId ^ eventId, Exception ^ exception, System::String ^ message, ... cli::array <System::Object ^> ^ args);
public void LogError (Microsoft.Xrm.Sdk.PluginTelemetry.EventId eventId, Exception exception, string message, params object[] args);
abstract member LogError : Microsoft.Xrm.Sdk.PluginTelemetry.EventId * Exception * string * obj[] -> unit
Public Sub LogError (eventId As EventId, exception As Exception, message As String, ParamArray args As Object())

Parameters

eventId
EventId

Id of the event.

exception
Exception

The exception related to this entry.

message
String

Format string of the scope message.

args
Object[]

An object array that contains zero or more objects to format.

Applies to