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
System_CAPS_pubpropertySystem_CAPS_static Timestamp

Gets or sets whether the timestamp should be printed when logging. The default value is true.

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Indent()

Indents the trace.

System_CAPS_pubmethodSystem_CAPS_static TraceDebug(String, Object[])

Performs debug tracing.

System_CAPS_pubmethodSystem_CAPS_static TraceDebugException(String, Exception, Object[])

Traces exception information with the debug level. This method is used for troubleshooting.

System_CAPS_pubmethodSystem_CAPS_static TraceError(String, Object[])

Writes an error message to the trace log, with parameters.

System_CAPS_pubmethodSystem_CAPS_static TraceException(String, Exception, Object[])

Writes the exception, as an error, to the trace log.

System_CAPS_pubmethodSystem_CAPS_static TraceInformation(String, Object[])

Writes an informational message to the trace log, with parameters.

System_CAPS_pubmethodSystem_CAPS_static TraceWarning(String, Object[])

Writes a warning message to the trace log, with parameters.

System_CAPS_pubmethodSystem_CAPS_static Unindent()

Removes indentation from the trace.

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static 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