TraceLogger.Log Method (String, TraceEventType, Exception)
Logs a trace event with the message and the exception.
Namespace: Microsoft.Crm.UnifiedServiceDesk.CommonUtility
Assembly: Microsoft.Crm.UnifiedServiceDesk.CommonUtility (in Microsoft.Crm.UnifiedServiceDesk.CommonUtility.dll)
Usage
'Usage
Dim instance As TraceLogger
Dim message As String
Dim eventType As TraceEventType
Dim exception As Exception
instance.Log(message, eventType, exception)
Syntax
'Declaration
Public Sub Log ( _
message As String, _
eventType As TraceEventType, _
exception As Exception _
)
public void Log (
string message,
TraceEventType eventType,
Exception exception
)
public:
void Log (
String^ message,
TraceEventType eventType,
Exception^ exception
)
public void Log (
String message,
TraceEventType eventType,
Exception exception
)
public function Log (
message : String,
eventType : TraceEventType,
exception : Exception
)
Parameters
- message
Specifies the message to be logged.
- eventType
Specifies the event type.
- exception
Specifies the exception object.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
TraceLogger Class
TraceLogger Members
Microsoft.Crm.UnifiedServiceDesk.CommonUtility Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.