How to specify the EventLog file location?

  • Thread starter Thread starter RA
  • Start date Start date
R

RA

Hi

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


Thanks
 
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.
 

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