[LogCallHandler] and tracingEnabled="true"

Topics: Policy Injection Application Block
Nov 3, 2010 at 6:13 PM


I'm using the Enterprise Library 3.1.

To add log to my application, I use injection with [LogCallHandler] :

public class Class1 : MarshalByRefObject    


How can I disable the logging ? I see in the config the key tracingEnabled="true" but if I replace "true" by "false", the application still create log. I use a Rolling Flat File Trace Listener.

Thank you for your help and sorry for my bad english.


Nov 4, 2010 at 12:04 AM
Edited Nov 4, 2010 at 12:05 AM

You can add the LogEnabled filter in the Logging Filters section and set its All Logging Enabled property to False.  Take note that this disables the logging functionality entirely and not specific only to the LogCallHandler.


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.

Nov 4, 2010 at 9:15 AM

Thank you very much !! It's work great !