By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,681 Members | 1,806 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,681 IT Pros & Developers. It's quick & easy.

How can I alter Event Log properties programmatically in Dot.Net?

P: n/a
Neither the EventLog component in dot net nor the EventLog Class will allow
me to access or alter the "Maximum log size" or to select "Overwrite Events
As Needed". Does anyone know how to do this in dot.net?
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to change the "Maximum log
size" in the Event Log. If there is any misunderstanding, please feel free
to let me know.

Both EventLog class and EventLog component are designed to provide
interaction with Windows event logs. The interactions include add, delete
events and event sources. Changing the Event Log settings are not the
responsibilities for EventLog class in .NET framework.

I think you can use the Event Log Management Script tool (Eventlog.pl) to
manage event logs. Please check the following for more information.

http://support.microsoft.com/default...b;en-us;318763

If you need to do this without tool, I suggest you try to post this
question in microsoft.public.dotnet.framework.wmi newsgroup.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.