This project has moved and is read-only. For the latest updates, please go here.

XmlWriterTraceListener Class

Writes E2ETraceEvent XML fragments to a file, suitable for viewing using the Service Trace Viewer tool.


For an alternative that supports rolling E2ETraceEvent files with various creation frequency (hourly, daily, weekly), see RollingXmlTraceListener.

Config Attributes

Attribute Description
initializeData Path of the file to write to.
traceOutputOptions Ignored.

Example Config

<?xml version="1.0" encoding="utf-8" ?>
      <add name="xmlwriter"
           initializeData="Logs\Trace.svclog" />
      <source name="ExampleSource" switchValue="All">
          <clear />
          <add name="xmlwriter" />

Example Output

Output files from multiple processes can be opened in the Service Trace Viewer tool and correlated across boundaries:

XmlWriterTraceListener Example Output

Config Template

<add name="xmlwriter"

Last edited Mar 27, 2013 at 2:41 AM by sgryphon, version 4


No comments yet.