MessagingTrace.TraceSwitch Field
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