title: How to get Microsoft.Extensions.Logging<T> in console application using Serilog and AutoFac?
body: <p>We have common BL classes in a ASP.NET Core application that get in the ctor:</p>
  
  <p><code>Microsoft.Extensions.Logging.ILogger&lt;Foo&gt;</code></p>
  
  <p>In ASP.NET Core, the internal infrastructure of ASP.NET handles getting the ILogger via the <code>LoggerFactory</code>.</p>
  
  <p>We now want to reuse these BL classes in a console application (for async jobs), how do we setup <em>AutoFac</em> and Serilog to inject <code>Microsoft.Extensions.Logging.ILogger&lt;T&gt;</code> in environment that <code>LoggerFactory</code> doesn't exists?</p>