[This topic is pre-release documentation and
is subject to change in future releases. Blank topics are included
as placeholders.]
Assembly: Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)
Gets/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
C# | Visual Basic | Visual C++ |
public static readonly TraceSwitch TraceSwitch
Public Shared ReadOnly TraceSwitch As TraceSwitch
public: static initonly TraceSwitch^ TraceSwitch
Examples
Putting this in your app.config will only log warnings and
errors
Copy Code | |
---|---|
<configuration> <system.diagnostics> <switches> <add name="Messaging Logging" value="Warning" /> </switches> </system.diagnostics> </configuration> |