G
Guest
Our app uses the EventLog class to write errors to the event log. Sometimes the app runs unattended for days, and if errors are occurring, the event log can fill up, causing the app to have no way of reporting further errors. The user needs to manually clear the event log in this case
To prevent this, we would like to specify the "Overwrite as needed" option on our event log to make it circular. This option is available as a checkbox on the properties page of the log itself when viewed through the event viewer
I don't see any methods on the EventLog class for setting this property. Is there a way to set this programatically
--thanks, Robb
To prevent this, we would like to specify the "Overwrite as needed" option on our event log to make it circular. This option is available as a checkbox on the properties page of the log itself when viewed through the event viewer
I don't see any methods on the EventLog class for setting this property. Is there a way to set this programatically
--thanks, Robb