This project is read-only.

Ukadc.Diagnostics.Listeners.ConsoleTraceListener

Description

An implementation of a CustomTraceListener that writes to the Console window with a formatted value thanks to a CombinedToken.

Example Usage

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

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


The initializeData attribute specifies a CombinedToken.

Last edited Apr 21, 2008 at 8:55 PM by joshtwist, version 1

Comments

No comments yet.