[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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 imageCopy Code
			<configuration>
				<system.diagnostics>
					<switches>
						<add name="Messaging Logging"
value="Warning" />
					</switches>
				</system.diagnostics>
			</configuration>
		

See Also