I use Ninject as a DI Container in my application. In order to loosely couple to my logging library, I use an interface like this:
public interface ILogger
maybe my answer is late but I'm using this format:
private static void RegisterServices(IKernel kernel) { kernel.Bind() .ToMethod(c => LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType)) .InSingletonScope(); }