Log errors

  • Thread starter Thread starter SOS
  • Start date Start date
S

SOS

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 ?
 
Back
Top