Hi,
Use trace instead of debug. Add a textwriterliste ner to the
trace listeners.
Dim fs As New System.IO.FileS tream("C:\Test. txt", IO.FileMode.App end)
Dim myTextListener As New TextWriterTrace Listener(fs)
Trace.Listeners .Add(myTextList ener)
Dim environmentVari ables As IDictionary =
Environment.Get EnvironmentVari ables()
Dim de As DictionaryEntry
For Each de In environmentVari ables
Trace.WriteLine (String.Format( " {0} = {1}", de.Key, de.Value))
Next de
Ken
----------------------
"Brian Henry" <brianiup[nospam]@adelphia.net> wrote in message
news:ul******** ******@TK2MSFTN GP12.phx.gbl...
Is there an easy way to make a copy of all the debug.writeline stuff go to
a log file also? thanks!