I just started a .NET Core console application for which I am relying on dependency injection. The logger is configured as singleton object. I can inject it just fine using