I try to inject log4net in a ILogger property of my service class but the property is always NULL!
I\'ve seen this topic but it doesn\'t help me!
How can I g
I was having the same problem. It was always null.
null
I managed to solve the problem by injecting the logger in the constructor this way:
public ILogger logger; public MyController(ILogger logger) { this.logger = logger; logger.Info("Something"); }