Serilog DI in ASP.NET Core, which ILogger interface to inject?
问题 Context I've successfully configured Serilog in my ASP.NET Core application, only the DI part remains. Question Now I have two ILogger interfaces, one is Serilog.ILogger the other is Microsoft.Extensions.Logging.ILogger . Both works based on my Serilog config, and I do not know which to use? (I mean, after Serilog config in place Microsoft.Extensions.Logging.ILogger also correctly logging through Serilog, so my config is honored) In case Microsoft.Extensions.Logging.ILogger I do know how to