Autofac Log4Net integration
I was checking out the Log4NetIntegration contribution on the Autofac wiki (http://code.google.com/p/autofac/wiki/Log4NetIntegration) and I'm having some trouble with the set up using version 2.4.
I really what to be able to achieve what the follow up thread is suggesting:
"...register N services that all take a dependency on ILog, and have Autofac do the right thing supplying a logger instance for each type that declares the dependency."
There seem to be differences in how this happens in the new version. Specifically, IModule implements a different Configure method than the example in the thread.
public void Configure(IComponentRegistry componentRegistry) {}
as aposed to
public void Configure(IContainer container) {}
开发者_运维问答
I'm new to Autofac so I'm not really sure where to go from here. Would appreciate any assistance.
Thanks,
Steve
精彩评论