no explicit mapping...?

Topics: Logging Application Block
Dec 20, 2007 at 12:22 PM
Hi

from my code if I try to log, using a "category name" that is not defined in configuration, I get an error in the system event log:
"There is no explicit mapping for the categories...".

But I don't care! How do I stop these outputs to the event log?

If I want to see a log then I'll configure the catetory. If I don't want to see any log then I'll remove the configuration for the category - and I don't want to see any eventlog error messages in that case.

Or maybe it's not supposed to work that way?

Thanks,
Peter
Dec 20, 2007 at 12:25 PM
Er, found the answer. It is of course configurable!
logWarningsWhenNoCategoriesMatch="false"

:-)