开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜