Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created November 11, 2018 13:29
Embed
What would you like to do?
Configure TraceListener - write to log file
private static TraceListener s_listener;
static void ConfigureTraceSourceLogging()
{
var writer = File.CreateText("logfile.txt");
s_listener = new TextWriterTraceListener(writer.BaseStream);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment