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.
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Timestamp | Gets or sets whether the timestamp should be printed when logging. The default value is true. |
| Name | Description | |
|---|---|---|
![]() ![]() | Indent() | Indents the trace. |
![]() ![]() | TraceDebug(String^, array<Object^>^) | Performs debug tracing. |
![]() ![]() | TraceDebugException(String^, Exception^, array<Object^>^) | Traces exception information with the debug level. This method is used for troubleshooting. |
![]() ![]() | TraceError(String^, array<Object^>^) | Writes an error message to the trace log, with parameters. |
![]() ![]() | TraceException(String^, Exception^, array<Object^>^) | Writes the exception, as an error, to the trace log. |
![]() ![]() | TraceInformation(String^, array<Object^>^) | Writes an informational message to the trace log, with parameters. |
![]() ![]() | TraceWarning(String^, array<Object^>^) | Writes a warning message to the trace log, with parameters. |
![]() ![]() | Unindent() | Removes indentation from the trace. |
| Name | Description | |
|---|---|---|
![]() ![]() | TraceSwitch | Gets or sets the trace switch. The default name for the trace switch is Messaging Logging. |
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



