TraceLogger.Log Method
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.
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 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 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 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 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