SLAB and Method Level Tracing based on configuration.

Topics: Policy Injection Application Block, Semantic Logging Application Block
Dec 14, 2015 at 12:38 AM
I am using SLAB in conjunction with PIAB to turn on method level tracing (pre/post). I have set it up to run in process and log to a rolling flat file. Since this is used for diagnostic tracing, I have a web.config app setting to enable/disable tracing. It's checked on application start to determine whether to enable logging. What I can't seem to get working is turning the tracing on/off based on configuration changes and restarting the application. Is this a manifest caching issue? Ideally, I want my web administrator and change the configuration (on our production server) and restart the application pool. The result would be turning on or off the tracing. Is this possible. So far I haven't had much luck.

Thanks for any help.

I would be happy to supply code if it helps.