title: Ninject to inject ILog dependency
body: <p>I have gone through some other posts in this forum that are related to Ninject and Log4net, but none seemed to address the issue (or resolve it).</p>
  
  <p>Code looks like</p>
  
  <pre><code>IKernel kernel = new StandardKernel(new NinjectSettings() { LoadExtensions = true }); 
  kernel.Load(Assembly.GetExecutingAssembly());
  Program pgm = new Program(kernel.Get&lt;IFSLog&gt;());
  </code></pre>
  
  <p>Exception is thrown in the last line above with message "Error activating ILog.  No matching bindings are available... "</p>
  
  <p>IFSLog is an interface defined in my assembly and its implementation has a dependency on the log4Net Ilog object as below</p>
  
  <pre><code>public class Log4NetLog : IFSLog {
    private ILog logger;
    public Log4NetLog(ILog log) {
      this.logger = log;
    }
    ...
  }
  </code></pre>
  
  <p>The project references the Ninject.extensions.logging.log4net assembly, so my understanding is that the ILog binding should be identified from there.</p>
  
  <p>Also tried the alternate way of specifying bindings manually</p>
  
  <pre><code>public class Bindings : NinjectModule {
      public override void Load() {
          Bind&lt;IFSLog&gt;().To&lt;Log4NetLog&gt;();
      }
  }
  </code></pre>
  
  <p>and initializing kernel as </p>
  
  <pre><code>IKernel kernel = new StandardKernel(new NinjectSettings() { LoadExtensions = false }, 
    new INinjectModule[] {new Bindings(), new Log4NetModule()});
  </code></pre>
  
  <p>Still same result.  Any help much appreciated, thanks in advance...</p>