Creating log files from Console App

  • Thread starter Thread starter Rathtap
  • Start date Start date
R

Rathtap

Is there any way to generate a log file with respect to errors that
may have occurred in a console app? Specifically, are TraceSwitch and
TraceListener one way to do it?
 
Rathtap,

The TraceSwitch and TraceListener can be used. Basically, you would
have to hook up a listener that will write to the log file. The thing is,
you have to indicate when and what you want written to the file. That's
your responsibility.

Hope this helps.
 
Back
Top