MessagingTrace Class
Special wrapper for System.Diagnostics.Trace. Use this class instead of System.Diagnostics.Trace. This class can be overridden with an app.config file to set the trace level.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Inheritance Hierarchy
System.Object
Microsoft.ConfigurationManagement.Messaging.Framework.MessagingTrace
Syntax
[SerializableAttribute]
public static class MessagingTrace
[SerializableAttribute]
public ref class MessagingTrace abstract sealed
<SerializableAttribute>
Public NotInheritable Class MessagingTrace
Properties
Name | Description | |
---|---|---|
Timestamp | Gets or sets whether the timestamp should be printed when logging. The default value is true. |
Methods
Name | Description | |
---|---|---|
Indent() | Indents the trace. |
|
TraceDebug(String, Object[]) | Performs debug tracing. |
|
TraceDebugException(String, Exception, Object[]) | Traces exception information with the debug level. This method is used for troubleshooting. |
|
TraceError(String, Object[]) | Writes an error message to the trace log, with parameters. |
|
TraceException(String, Exception, Object[]) | Writes the exception, as an error, to the trace log. |
|
TraceInformation(String, Object[]) | Writes an informational message to the trace log, with parameters. |
|
TraceWarning(String, Object[]) | Writes a warning message to the trace log, with parameters. |
|
Unindent() | Removes indentation from the trace. |
Fields
Name | Description | |
---|---|---|
TraceSwitch | Gets or sets the trace switch. The default name for the trace switch is Messaging Logging. |
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.
See Also
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top