Nlog + Microsoft.Extensions.Logging + Autofac = argh

So I have a .net 4.72 application using Autofac that I am trying to add NLog. Eventually it will be ported to .net core so I want to inject the logger like so:

public MyClass(ILogger<MyClass> logger)

My google fu is totally failing me. Has anyone come across this odd combination before? Or am I just barking up the wrong tree?

submitted by /u/Skarsnik101
[link] [comments]

Leave a Reply