Configure Tracing

This topic describes diagnostic tracing and its related configuration options for Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) tracing in Windows Server AppFabric.

Configuring System.Diagnostics Tracing

AppFabric allows you to configure the WCF and WF tracing levels individually and direct the combined trace output to a file. You can configure these options at the server, site, or application scope. When you configure System.Diagnostics settings using AppFabric, you are enabling and setting the <System.Diagnostics> section in the Web.config file for the scope you have selected.

You can configure the System.Activities and System.ServiceModel trace sources to emit traces at a particular trace source level as defined by the .NET Framework System.Diagnostics namespace. Within AppFabric, you configure the available WCF and WF tracing levels and the output file by using the Configure Diagnostic Tracing and Message Logging Dialog Box as shown in the following procedure. You can configure WCF and WF tracing independently, but the output of both is directed to a one trace file. You cannot have separate trace files for WCF and WF tracing. The log file is created by System.Diagnostics.XMLWriterTraceListener and is suitable for viewing with the Service Trace Viewer Tool (http://go.microsoft.com/fwlink/?LinkId=127094).

The settings with more verbose output tend to slow down performance due to the overhead of a large number of write operations to the output trace file. If you use a verbose setting to isolate and debug a problem, be sure to change that setting when you return to normal operations. Failure to do so can result in noticeable performance degradation. For a complete description of tracing levels, see SourceLevels Enumeration (http://go.microsoft.com/fwlink/?LinkId=168592).

Configuring Diagnostic Tracing

The following procedure shows how to use the Configure Diagnostic Tracing and Message Logging dialog box to change the tracing level and trace file name.

To configure WCF and WF Tracing

  1. In IIS Manager, in the Connections pane, select the scope at which you want to configure tracing: server, site, or application.

  2. Right-click the item, and then click Manage WCF and WF Services. Alternatively, click the Manage WCF and WF Services section in the Actions pane.

  3. Click Configure, and the Configure WF and WCF dialog box appears. Click the Monitoring tab.

  4. On the Monitoring tab, under Diagnostic Tracing and Message Logging, click Configure. The Configure Diagnostic Tracing and Message Logging dialog box appears.

  5. Select WCF and WF tracing settings and specify the log file to use.

    noteNote
    You can configure WCF and WF tracing independently, but the output of both is directed to one trace file. You cannot have separate trace files for WCF and WF tracing.

  6. Click OK to close the dialog box and save your changes.

See Also

Community Additions

ADD
Show: