Issue writing to a custom event log using the Logging Application Block

Topics: Logging Application Block
Apr 10, 2009 at 6:20 PM
I have created a custom event log and source. In the web.config file for the formatted eventlog tracelistener I added log="MyCustomEventLog" source="MyCustomEventSource".

When I run my web application and there is an error, the error is being written to the custom event log as it should be. But the same error is also being written to the Application event log. If I go into the properties for the Application event log I see that my custom event source was added as an event source under the Application event log during runtime.

Can anyone help me understand why this is happening? Is this a bug or a configuration problem with my application? I only want errors from my application to be logged to the custom event log I have created, I don't want them to be logged in two places. I tried setting the useDefaultLogger setting to true after reading a suggestion from one of the FAQs but it didn't make any difference.
Apr 11, 2009 at 6:10 PM

Can you post your config? so i can take a closer look.

Valiant Dudan
Global Technology & Solutions
Avanade, Inc.