Skip to content

Instantly share code, notes, and snippets.

@fillet54
Created April 15, 2014 16:46
Show Gist options
  • Save fillet54/10746729 to your computer and use it in GitHub Desktop.
Save fillet54/10746729 to your computer and use it in GitHub Desktop.
AppConfig
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<system.diagnostics>
<sources>
<source name="MyCompany.Application" switchValue="All">
<listeners>
<add initializeData="output.txt" type="LoggingTesting.SimpleTraceListener, LoggingTesting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
name="myLocalListener" traceOutputOptions="DateTime" />
<add name="consoleListener" />
<add name="xmlListener" />
</listeners>
</source>
</sources>
<sharedListeners>
<add initializeData="output.xml" type="System.Diagnostics.XmlWriterTraceListener"
name="xmlListener" traceOutputOptions="Timestamp" />
<add type="System.Diagnostics.ConsoleTraceListener" name="consoleListener"
traceOutputOptions="Timestamp" />
</sharedListeners>
</system.diagnostics>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment