J
Jason
Hi,
I'm a little confused on using a trace listener. I'm doing this (winforms
app btw not web app)
TextWriterTraceListener listener = new
TextWriterTraceListener("TraceOutput.txt", "filetrace");
Trace.Listeners.Add(listener);
Trace.WriteLine("Starting My Program ")
But in my other forms when I do a Trace.Writeline they don't get written to
the output.txt file. Am I supposed to create new tracelisteners for all the
forms in my project (that I wish to have trace messages)? and what about two
listeners trying to access the output.txt file at the same time?
It's not clear in the docs or anything I can find what to do in this
situation.
Thanks!!
I'm a little confused on using a trace listener. I'm doing this (winforms
app btw not web app)
TextWriterTraceListener listener = new
TextWriterTraceListener("TraceOutput.txt", "filetrace");
Trace.Listeners.Add(listener);
Trace.WriteLine("Starting My Program ")
But in my other forms when I do a Trace.Writeline they don't get written to
the output.txt file. Am I supposed to create new tracelisteners for all the
forms in my project (that I wish to have trace messages)? and what about two
listeners trying to access the output.txt file at the same time?
It's not clear in the docs or anything I can find what to do in this
situation.
Thanks!!