Configure Diagnostic Tracing and Message Logging Dialog Box
Use the Configure Diagnostic Tracing and Message Logging dialog box to configure WCF and WF tracing levels, and message logging options, at the server, site, or application level. With this dialog you can configure legacy System.Diagnostics monitoring functionality. When System.Diagnostics is configured, a svclog file is created, which is consumed by the SvcTraceViewer tool. This promotes additional integration with Windows Server AppFabric and its troubleshooting features.
The WF and WCF tracing levels are defined in increasing order of verbosity; Off, Critical, Error, Warning, Information, and Verbose. The more verbose the option, the more information is written to the trace log which can aid in the process of isolating a problem. However, with the increase in verbosity comes a corresponding decrease in performance.
Dialog Fields
Tracing
Field |
Description |
WCF tracing level |
Select the tracing level for WCF messages. On load, this field is set to the Verbosity Level ( |
Workflow tracing level |
Select the tracing level for Workflow tracing. On load, this field is set to the Verbosity Level ( |
Tracing file name |
Enter the name of the trace log *.svclog file to store the tracing information. This accepts the value of the |
Message Logging
Field |
Description |
Enable |
Specify if System Diagnostics Message Logging is enabled. This field is checked if a |
Log at Transport level |
Accepts the value from |
Log Entire Message |
Accepts the value of |
Log malformed messages |
Accepts the value from |
File name |
Enter the name of the *.svclog log file to store the message logging information. This accepts the value of the |
Related Configurations
The fields in the Configure Diagnostic Tracing and Message Logging dialog box correspond to the following elements and attributes in the configuration file.
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="xml" />
</listeners>
</source>
<source name="System.Activities"
switchValue="Information, ActivityTracing">
<listeners>
<add name="xml" />
</listeners>
</source>
<source name="System.ServiceModel.MessageLogging">
<listeners>
<add name="messages"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData="c:\logs\messages.svclog" />
</listeners>
</source>
</sources>
<sharedListeners>
<add name="xml"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData="c:\log\Traces.svclog" />
</sharedListeners>
</system.diagnostics>
<system.serviceModel>
<diagnostics>
<messageLogging
logEntireMessage="true"
logMalformedMessages="false"
logMessagesAtServiceLevel="true"
logMessagesAtTransportLevel="false"
maxMessagesToLog="3000"
maxSizeOfMessageToLog="2000"/>
</diagnostics>
</system.serviceModel>
For more information on the message logging levels and their values, refer to Recommended Settings for Tracing and Message Logging.