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
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
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
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