Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jivkokgist/3005485 to your computer and use it in GitHub Desktop.
Save jivkokgist/3005485 to your computer and use it in GitHub Desktop.
App.config: trace listeners - console and text file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="logListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="trace.log" />
<add name="consoleListener" type="System.Diagnostics.ConsoleTraceListener"/>
</listeners>
</trace>
</system.diagnostics>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment