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)

System::Object
  Microsoft.ConfigurationManagement.Messaging.Framework::MessagingTrace

[SerializableAttribute]
public ref class MessagingTrace abstract sealed 

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticTimestamp

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticIndent()

Indents the trace.

System_CAPS_pubmethodSystem_CAPS_staticTraceDebug(String^, array<Object^>^)

Performs debug tracing.

System_CAPS_pubmethodSystem_CAPS_staticTraceDebugException(String^, Exception^, array<Object^>^)

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

System_CAPS_pubmethodSystem_CAPS_staticTraceError(String^, array<Object^>^)

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

System_CAPS_pubmethodSystem_CAPS_staticTraceException(String^, Exception^, array<Object^>^)

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

System_CAPS_pubmethodSystem_CAPS_staticTraceInformation(String^, array<Object^>^)

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

System_CAPS_pubmethodSystem_CAPS_staticTraceWarning(String^, array<Object^>^)

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

System_CAPS_pubmethodSystem_CAPS_staticUnindent()

Removes indentation from the trace.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticTraceSwitch

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.

Return to top
Show: