Created
February 9, 2013 21:11
-
-
Save yetanotherchris/4747141 to your computer and use it in GitHub Desktop.
Filtering System.Diagnostics Trace messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.diagnostics> | |
<!-- Add multiple sources for varying levels of tracing --> | |
<sources> | |
<source name="debugSource" switchName="defaultSwitch" switchType="System.Diagnostics.SourceSwitch"> | |
<listeners> | |
<add name="eventLogListener" type="System.Diagnostics.EventLogTraceListener" initializeData="ASP.NET 2.0.50727.0" /> | |
</listeners> | |
</source> | |
</sources> | |
<switches> | |
<add name="defaultSwitch" value="Error"/> | |
<!-- See System.Diagnostics.SourceLevels enum --> | |
</switches> | |
<trace autoflush="false" indentsize="4"> | |
<listeners> | |
<add name="eventLogListener" type="System.Diagnostics.EventLogTraceListener" initializeData="ASP.NET 2.0.50727.0" /> | |
</listeners> | |
</trace> | |
</system.diagnostics> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment