EventLog ModifyOverflowPolicy
EventLog log = new EventLog(LogName);
log.ModifyOverflowPolicy(OverflowAction.OverwriteAsNeeded, 7);
log.MaximumKilobytes = 640000;
Read: http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.modifyoverflowpolicy.aspx
log.ModifyOverflowPolicy(OverflowAction.OverwriteAsNeeded, 7);
log.MaximumKilobytes = 640000;
Read: http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.modifyoverflowpolicy.aspx
Comments
Post a Comment