title: ILogger and DependencyInjection in ASP.NET Core 2+
body: <p>I notice there is no explicit <code>ILogger</code> registration in <code>ConfigureServices</code> in <code>Startup.cs</code>.</p>
  
  <p>First question: how does <code>ILogger</code> get injected into e.g. controllers.</p>
  
  <p>Second question: how do I configure <code>ILogger</code> to get injected into middleware?</p>