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.
精彩评论