title: Using log4net with Autofac
body: <p>I am trying to use log4net with Autofac.
  I've pasted this code <a href="http://autofac.readthedocs.org/en/latest/examples/log4net.html" rel="noreferrer">http://autofac.readthedocs.org/en/latest/examples/log4net.html</a> ,
  and from Program.cs/Main() I am doing</p>
  
  <pre><code>var iocBuilder = new ContainerBuilder();
  iocBuilder.RegisterModule(new LoggingModule());
  var iocContainer = iocBuilder.Build();
  </code></pre>
  
  <p>now I would like to try this out immediately (in the next line),
  writing a simple line to the log file. How should I do it?</p>
  
  <p>I am thinking of something like this</p>
  
  <pre><code>var ls = iocContainer.Resolve&lt;LoggingModule&gt;();
  ls.Info("the logging is working");
  </code></pre>
  
  <p>Thanks a lot</p>