Can I, in code, set the Log Size properties of Custom Event Logs?

G

Guest

Or must the properties of the Custom Event Log be set in the Windows Event
Log viewer?

The properties I want to control are:
1. Max Log Size
2. Overwrite events as needed
 
R

Richard Grimes [MVP]

Dave said:
Or must the properties of the Custom Event Log be set in the Windows
Event Log viewer?

The properties I want to control are:
1. Max Log Size
2. Overwrite events as needed

These are settings in the registry, so you can set them in code. Note that
in Whidbey there is a property to do this. Finally, in Whidbey, they've
actually got someone who knows about the Event Log to work on the code!

Richard
 

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