Closed MindaugasBernatavicius closed 3 years ago
AddFile
extension method is implemented here: https://github.com/nreco/logging/blob/master/src/NReco.Logging.File/FileLoggerExtensions.cs
It works just fine when used in MVC Core Startup.cs. I'm not sure what is wrong in your code -- have you tried to use standard logging provider, say, AddConsole, and check how it works?
Yea, sorry my mistake, the logger did not have the generic param: public Appy(ILogger
Not yet sure why, but ImplementationType null injecting with .AddLogging() method. Advice would be appreciated. Also is there a simpler way of configuring this logging library with DI?
Screenshot:
Minimal working example (uncomment the line that works):