R RA Jan 13, 2004 #1 Hi Is there a way to specify where the custom EventLog file will be created? Thanks
W wobbles Jan 13, 2004 #2 Hi Is there a way to specify where the custom EventLog file will be created? Thanks Click to expand... 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.
Hi Is there a way to specify where the custom EventLog file will be created? Thanks Click to expand... 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.