Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the trace switch. The default name for the trace switch is Messaging Logging.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static readonly TraceSwitch TraceSwitch
public:
static initonly TraceSwitch^ TraceSwitch
Public Shared ReadOnly TraceSwitch As TraceSwitch
Field Value
Type: System.Diagnostics.TraceSwitch
Examples
Adding the following code to your app.config will log only warnings and errors.
<configuration>
<system.diagnostics>
<switches>
<add name="Messaging Logging" value="Warning" />
</switches>
</system.diagnostics>
</configuration>
See Also
MessagingTrace Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top