Castle Windsor Logging Facility - named loggers

2009-10-16 Thread Sosh
Hi, I've set up the Windsor logging facility, and have it working with log4net. However, I can't figure out how to specify which named logger the messages should go to - how do I do this? (At the moment they seem to just go to root) Thanks, S

Re: Castle Windsor Logging Facility - named loggers

2009-10-16 Thread Ken Egozi
do not contaier.ResolveILogger().the whole idea is to have windsor deal with it - by having a component dependent on ILogger, and have Windsor resolve it. Say: namespace A { public class B { ILogger logger; public B(ILogger logger) { this.logger = logger }; } } Assuming you

Re: Castle Windsor Logging Facility - named loggers

2009-10-16 Thread Sosh
Hi Ken, I'm not using container.Resolve. I'm using the built in logging facility in Windsor. So in my container initialisation I have something like: container.AddFacility(logging, new LoggingFacility (LoggerImplementation.Log4net)); And then in my consuming classed, I just have: public

Re: Castle Windsor Logging Facility - named loggers

2009-10-16 Thread Ken Egozi
the name is the fully qualified classname.If you want something different, then you should create an ILoggerFactory that will do what you want it to do. take a peek into the existing Log4Net integration's ILoggerFactory implementation to get started On Fri, Oct 16, 2009 at 12:19 PM, Sosh