|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
EventLog Doesn't write to Custom Event LogFollowing are the steps which I have done in order to write the log in the Custome Log created by my application based on configuration setting. 1) Created a config file containg the name of Log configured by user. e.g. Log1 2) Crated a generic application to write the messages passed by application to the log specified in step 1 e.g the message are written in "Log1" 3) Changed the config file to different log e.g. "Log2" 4) Application used the generic class created in 2 to write the message. Problem: Now this genric class creates the log "Log2" as it doesn't exits but the mesage passed by the applications are still written to "Log1" and "Log2" remains empty. Though, "Log2" gets created but remains empty. Can any one help??? Thanks pb. I had the same problem when simply creating a custom log and then writing to it; it just wrote to the Application log. I added a step to restart the Eventlog service before writing to the log and this fixed it.
EggHeadCafe.com - .NET Developer Portal of Choice http://www.eggheadcafe.com |
|||||||||||||||||||||||