How to Inject Log4Net ILog implementations using Unity 2.0
问题 Ultimately this has to do with setting up log4Net but generically the problem is not logging specific. Generically what I am trying to figure out is how to do, in Microsoft Unity 2.0, something equivalent to what one gets with the Castle.Facilities.Logging.LoggingFacility. Namely the ability to declare a dependency on a logger and have the logger initialized with the Type of the object into which it is being injected. In the spirit of a test is worth a thousand words, here is what I need: