How to enable this scenario with Logging Block

Topics: Logging Application Block
Aug 19, 2008 at 12:12 AM
Can we use the logging block by configruing it as a tracelistener?
1. I don't want to hardcode calls to the block using Logger.Write
2. However, I should be able to configure it using the logging configuration section when I want to.

What's happening currently is, once I hardcode the call but don't specify the config section, the app throws. What I want to do is to start using debug.trace in the code and whenever the config section is specifed log is generated. Else no exception