Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Event log problems

Status
Not open for further replies.

intrex

IS-IT--Management
Apr 14, 2002
70
US
Hello,

I am writting a multithreaded server applicaton that logs all of its information to the event log. I would like to create custom categories for the servers events. It seems the only way to do this is to create resource dlls. Then manually write registry keys to tell the event log to use these dlls. This application is intented to be universal for microsoft operating systems and I don't want to manually write registry keys. Is there nothing in the .net framework that will allow me to write completely customized event logs?

I needed a mechanism to back up event logs when they get full. It seems the only way to change the default size of an event log is to once again manually write registry keys. There appears to be no mechanism in the .net framework to save event log files as .evt files readable by the eventlog viewer. In absence of a better solution I am currently backing up the eventlogs to csv files when they reach 500kbs (the default log size is 512kb) or greater.

Any help would be greatly appreciated,

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top