Partajați prin


TraceLoggerBase.Log Method

Definition

Overloads

Log(Exception)

Logg an error with an Exception

Log(String)

Log a Message as an Information event.

Log(String, TraceEventType)

Log a Trace event

Log(String, TraceEventType, Exception)

Log a Trace event

Log(Exception)

Logg an error with an Exception

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

Parameters

exception
Exception

Applies to

Log(String)

Log a Message as an Information event.

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

Parameters

message
String

Applies to

Log(String, TraceEventType)

Log a Trace event

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

Parameters

message
String
eventType
TraceEventType

Applies to

Log(String, TraceEventType, Exception)

Log a Trace event

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

Parameters

message
String
eventType
TraceEventType
exception
Exception

Applies to