Selecting an interceptor based on a facility created ILogger
I have two types of interceptors: LoggingWithDebugInterceptor and LoggingInterceptor.
I am using the Castle Logging Facility and I am wondering how to write a selector that registers an interceptor on my container for any type that implements ILoggabl开发者_如何学编程e according to the ILogger's IsDebugEnabled property that was created by the Castle Logging Facility. How can it be done?Don't.
Configure that at your logging framework's level.
精彩评论