title: Do I have to resolve ILogger with Castle Windsor?
body: <p>All of this code is my own libary to be used by my client consumer applications
  I have exactly the same installer as in the documentation found <a href="http://docs.castleproject.org/Windsor.Windsor-Tutorial-Part-Five-Adding-logging-support.ashx" rel="nofollow">here</a>. I also have a bootstrapper pretty much the same as found <a href="http://docs.castleproject.org/Windsor.Installers.ashx" rel="nofollow">here</a>, except I use: <code>_bootStrapContainer = new WindsorContainer().Install(FromAssembly.Named("MyAssembly"));</code></p>
  
  <p>I thought the installer would inject the <code>Castle.Core.Logging.ILogger</code> into the <code>MyLogger</code> class below but I always get null logger unless I resolve the <code>MyLogger.Logger</code> like this: </p>
  
  <pre><code>MyLogger lgr = new MyLogger();            
  lgr.Logger = container.Resolve&lt;ILogger&gt;();
  </code></pre>
  
  <p>So my question is do I always have to resolve or am I not doing something correct during 
  registration?</p>
  
  <pre><code>using Castle.Core.Logging;
  
  public class MyLogger
  {
     private ILogger _logger = NullLogger.Instance;
  
     public ILogger Logger
     {
         get
         {
             return _logger;
         }
         set
         {
             _logger = value;
         }
      } 
  }
  </code></pre>