Connecting Tech Pros Worldwide Help | Site Map

C#: Event Logs

PRR PRR is offline
Moderator
 
Join Date: Dec 2007
Location: India
Posts: 700
#1: Sep 10 '08
I have a functions (rather events).. which write to event logs every 3 to 5 seconds..There are 5 to 10 functions which do this .. writing to event logs... i m aware of the fact that writing to event logs is resource hog.... is there a better way of doin it? i figured it that maybe for temporary i may write to XML file and then run another threads that periodically checks this XML file.... though in this situation the timing of event gets changed....
nateraaaa's Avatar
Expert
 
Join Date: May 2007
Location: Illinois
Posts: 663
#2: Sep 10 '08

re: C#: Event Logs


Log4Net is a logging tool that you could utilize. If you needed to check information written to the log you could simply parse the file for the data that you are looking for.

Nathan
Reply