Creating new Event Log with size information

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
 
S

S. Han

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top