Groups | Blog | Home
all groups > dotnet framework > april 2004 >

dotnet framework : Log errors


SOS
4/25/2004 7:22:51 PM
Hi guys ,
when i run a project (in debug mode) , while the project runing , if an
error occures , error information will written in the debug window
i create a debug listener object by this code :

TextWriterTraceListener ts = new TextWriterTraceListener
("Log.txt","MyLog");
Debug.Listeners.Add(ts);

but when an error occure, error information not written in the log file
what's the problem ?

Sivaraj
4/25/2004 9:11:03 PM
SOS
4/26/2004 9:04:10 PM
Thanx,
do u meant to write a Trace.Write in a Try ... Catch statement ?


[quoted text, click to view]

AddThis Social Bookmark Button