Freigeben über


TraceLogger.Log Method

Definition

Overloads

Log(Exception)

Log an error with an Exception.

Log(String)

Log a Message.

Log(String, TraceEventType)

Log a Trace event.

Log(String, TraceEventType, Exception)

Log a Trace event.

Log(Exception)

Log an error with an Exception.

public:
 void Log(Exception ^ exception);
public void Log (Exception exception);
member this.Log : Exception -> unit
Public Sub Log (exception As Exception)

Parameters

exception
Exception

Applies to

Log(String)

Log a Message.

public:
 void Log(System::String ^ message);
public void Log (string message);
member this.Log : string -> unit
Public Sub Log (message As String)

Parameters

message
String

Applies to

Log(String, TraceEventType)

Log a Trace event.

public:
 void Log(System::String ^ message, System::Diagnostics::TraceEventType eventType);
public void Log (string message, System.Diagnostics.TraceEventType eventType);
member this.Log : string * System.Diagnostics.TraceEventType -> unit
Public Sub Log (message As String, eventType As TraceEventType)

Parameters

message
String
eventType
TraceEventType

Applies to

Log(String, TraceEventType, Exception)

Log a Trace event.

public:
 void Log(System::String ^ message, System::Diagnostics::TraceEventType eventType, Exception ^ exception);
public void Log (string message, System.Diagnostics.TraceEventType eventType, Exception exception);
member this.Log : string * System.Diagnostics.TraceEventType * Exception -> unit
Public Sub Log (message As String, eventType As TraceEventType, exception As Exception)

Parameters

message
String

Error Message

eventType
TraceEventType

Trace Event type Information

exception
Exception

Exception object

Applies to