Skip to content

Instantly share code, notes, and snippets.

@eversinc33
Created August 8, 2026 08:42
Show Gist options
  • Select an option

  • Save eversinc33/cd7f3e90643f69748862b87f394f1c16 to your computer and use it in GitHub Desktop.

Select an option

Save eversinc33/cd7f3e90643f69748862b87f394f1c16 to your computer and use it in GitHub Desktop.
trace.exe.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.diagnostics>
<trace autoflush="true" />
<sources>
<source name="System.Net" switchValue="Verbose">
<listeners>
<add name="netlog" />
</listeners>
</source>
<source name="System.Net.Http" switchValue="Verbose">
<listeners>
<add name="netlog" />
</listeners>
</source>
<source name="System.Net.Sockets" switchValue="Verbose">
<listeners>
<add name="netlog" />
</listeners>
</source>
</sources>
<sharedListeners>
<add
name="netlog"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\Users\Public\nettrace.log" />
</sharedListeners>
</system.diagnostics>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment