Share via


ILogger.LogCritical Method

Definition

Overloads

LogCritical(String, Object[])

Formats and writes a critical log message.

LogCritical(EventId, String, Object[])

Formats and writes a critical log message.

LogCritical(Exception, String, Object[])

Formats and writes a critical log message.

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

Formats and writes a critical log message.

LogCritical(String, Object[])

Formats and writes a critical log message.

public:
 void LogCritical(System::String ^ message, ... cli::array <System::Object ^> ^ args);
public void LogCritical (string message, params object[] args);
abstract member LogCritical : string * obj[] -> unit
Public Sub LogCritical (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

LogCritical(EventId, String, Object[])

Formats and writes a critical log message.

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

LogCritical(Exception, String, Object[])

Formats and writes a critical log message.

public:
 void LogCritical(Exception ^ exception, System::String ^ message, ... cli::array <System::Object ^> ^ args);
public void LogCritical (Exception exception, string message, params object[] args);
abstract member LogCritical : Exception * string * obj[] -> unit
Public Sub LogCritical (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

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

Formats and writes a critical log message.

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