Creating new Event Log with size information

  • Thread starter Thread starter Kimmo Laine
  • Start date Start date
K

Kimmo Laine

Hello,

is it possible, when creating new Event log (C#), to specify the log size or
other related options.

if( !EventLog.SourceExists( sourceName ) ) {
EventLog.CreateEventSource( sourceName, logName );
}

m_Log = new EventLog();
m_Log.Source = sourceName;
// ...


tfx

Kimmo Laine
 
EventLog is managed by the system. I don't think you can
set the size or anything like that.

If you want to limit the size of logging, implement
your own logging to a private text file.
 
Back
Top