This project is read-only.



An implementation of a CustomTraceListener that calls OutputDebugString with a formatted value thanks to a CombinedToken. The output of this TraceListener can be viewed using a tool like DebugView from SysInternals.

Example Usage

The first step is to add the OutputDebugStringTraceListener to your configured listeners

<source name="myTraceSource" switchValue="All">
    <add type="Ukadc.Diagnostics.Listeners.OutputDebugStringTraceListener, Ukadc.Diagnostics" 
name="odsTraceListener" initializeData="{EventType}: {Id}, {Source}, {Message}" />

The initializeData attribute specifies a CombinedToken.

Here's an example of the output for this token in DebugView from SysInternals


Last edited Apr 11, 2008 at 12:41 PM by joshtwist, version 5


No comments yet.