title: Inject Serilog's ILogger interface in ASP .NET Core Web API Controller
body: <p>All the examples I can find about using Serilog in an ASP .NET Core Web Application use Microsoft's <code>ILogger&lt;T&gt;</code> interface instead of using Serilog's <code>ILogger</code> interface.</p>
  
  <p>How do I make it so that Serilog's ILogger can be injected via constructor, instead?</p>
  
  <pre><code>using Serilog;
  
  public class HomeController : Controller
  {
      ILogger logger;
  
      public HomeController(ILogger logger)
      {
          this.logger = logger;
      }
  
      public IActionResult Index()
      {
          this.logger.Information("Index was called");
          return View();
      }
  }
  </code></pre>