Event Log is Full

  • Thread starter Thread starter João Santa Bárbara
  • Start date Start date
J

João Santa Bárbara

Hi all ..
i have an application that writes to the windows Event Log.
and when it reaches a certain point, it gets full log.
how can i solve this problem ( all by code )

thsk
JSB
 
Personally, I would solve the problem by making the log large enough to hold
plenty of history, and then set it to overwrite events. But you do this once
from the control panel, and not from code.

If you want to clear the event log down, you can do this from code, via
System.Diagnostics.EventLog.Clear

If thats what you want to do, dont let me disuade you, but as a software
developer I dont think these event log entries (even ones I wrote) are mine
to delete (and while I'm voicing opinions, I might also add that if you are
filling up the event long quickly, you are very probably logging too much).

Nick.
 
Back
Top