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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top