TraceLogger.Log Method
Definition
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
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:
override void Log(Exception ^ exception);
public override void Log (Exception exception);
override this.Log : Exception -> unit
Public Overrides Sub Log (exception As Exception)
Parameters
- exception
- Exception
Applies to
Log(String)
Log a Message
public:
override void Log(System::String ^ message);
public override void Log (string message);
override this.Log : string -> unit
Public Overrides Sub Log (message As String)
Parameters
- message
- String
Applies to
Log(String, TraceEventType)
Log a Trace event
public:
override void Log(System::String ^ message, System::Diagnostics::TraceEventType eventType);
public override void Log (string message, System.Diagnostics.TraceEventType eventType);
override this.Log : string * System.Diagnostics.TraceEventType -> unit
Public Overrides Sub Log (message As String, eventType As TraceEventType)
Parameters
- message
- String
- eventType
- TraceEventType
Applies to
Log(String, TraceEventType, Exception)
Log a Trace event
public:
override void Log(System::String ^ message, System::Diagnostics::TraceEventType eventType, Exception ^ exception);
public override void Log (string message, System.Diagnostics.TraceEventType eventType, Exception exception);
override this.Log : string * System.Diagnostics.TraceEventType * Exception -> unit
Public Overrides Sub Log (message As String, eventType As TraceEventType, exception As Exception)
Parameters
- message
- String
- eventType
- TraceEventType
- exception
- Exception