logging filter by namespace?

Topics: Logging Application Block
Jun 8, 2008 at 4:32 PM
Is there an existing feature/setting that I can place a global logging filter based on namespace? For example to set all log entries from "Test.ABC" to off so they don't go to any destination.

If this doesn't exist, how can I create one myself?

Thanks!
Jun 11, 2008 at 10:31 PM
Hi,

There isn't such a filter out of the box.

An implementation for it would probably rely on the StackTrace class, which is known to provide partial information when optimizations are applied so it wouldn't be able to gather the information required for filtering in a reliable way.

Fernando


catkin wrote:
Is there an existing feature/setting that I can place a global logging filter based on namespace? For example to set all log entries from "Test.ABC" to off so they don't go to any destination.

If this doesn't exist, how can I create one myself?

Thanks!