I have a logger as follows:
public class Logger : ILogger
private ILogger _logger;
public Logger(Type type)
_logger = LogManager.CreateLogger(type);
I am trying to build a log module:
public class LogModule : Autofac.Module
protected override void Load(ContainerBuilder builder)
const string propertyNameKey = "Autofac.AutowiringPropertyInjector.InstanceType";
I have to find and inject the type into the
Logger, something like this question is asking, but that question does property injection, i need ctor injection.
How can I get contextual logging, ie log per Type?