Skip to content

Instantly share code, notes, and snippets.

@benjaminramey
Created February 1, 2012 15:52
Show Gist options
  • Select an option

  • Save benjaminramey/1717668 to your computer and use it in GitHub Desktop.

Select an option

Save benjaminramey/1717668 to your computer and use it in GitHub Desktop.
Simple web.config xml to set up a trace file listener.
<system.diagnostics>
<trace autoflush="false"
indentsize="4">
<listeners>
<add name="myListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\LOG_FILE_NAME.log" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment