Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ILogger.LogError Method

Definition

Namespace:
Microsoft.Xrm.Sdk.PluginTelemetry
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

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

Name Description
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