Dim TraceTextListner As System.Diagnostics.TextWriterTraceListener = Nothing
Dim traceStream As System.IO.FileStream
traceStream = New System.IO.FileStream("c:\testingissue\test.log", FileMode.Create, FileAccess.Write)
TraceTextListener = New System.Diagnostics.TextWriterTraceListener(traceStream)
System.Diagnostics.Trace.Listeners.Clear()
System.Diagnostics.Trace.Listeners.Add(TraceTextListener)
System.Diagnostics.Trace.Write("Test Trace")
System.Diagnostics.Trace.Flush()
Friday, August 8, 2008
Trace .net
Labels:
.net,
FileStream,
Listeners,
trace,
Trace.Flush,
TraceTextListnener
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment