开发者

Castle Windsor Setting log level when logging to console

I'm new to Castle Windsor and am struggling to setup the initial log level of ConsoleLogger. The documentation gives some hints for log4net but is silent about logging to console.

My code looks as follows:

container.AddFacility<Castle.Facilities.Logging.LoggingFacility>(
  开发者_开发百科  f => f.LogUsing(Castle.Facilities.Logging.LoggerImplementation.Console));

Any hints how I can set the default log level of the facility to e.g. LoggerLevel.Warn?

Cheers


I don't think that is supported if you take direct dependency on ILogger rather than ILoggerFactory. Feel free to request this in the issue tracker.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜