title: Serilog with Autofac
body: <p>I have a logger wrapper and I wanna inject serilog to it with following configurtion perse: </p>
  
  <pre><code>var logger = new LoggerConfiguration()
     .WriteTo.RollingFile(
        AppDomain.CurrentDomain.GetData("DataDirectory").ToString() + "/Log-{Date}.txt")
     .CreateLogger();
  </code></pre>
  
  <p>I cant seem to find a correct way to register it. I want it as singleton. Above is the instance. </p>
  
  <p>I tried registering the instance above. Didnt work. I tried lambda, didnt work.</p>
  
  <p>What works? anyone?</p>