How to specify the EventLog file location?

  • Thread starter Thread starter RA
  • Start date Start date
Hi

Is there a way to specify where the custom EventLog file will be created?


Thanks

Are you asking whether it's possible to specify whether you can save
under "Application", "Security" or "System"? Or do you mean something
else?

To specify (for example) "Application", do something like:

just use the def. constructor:
EventLog mylog = new EventLog();

followed by:
mylog .Log = "Application";

Alternatively use one of the constructors that take "LogName" as an
argument.


If you're asking whether you can save the actual logfile (controlled
by Eventviewer, I believe) to some other place, then I don't know.
 
Back
Top