title: Null Reference Exception using Ninject with Ninject.Extensions.Nlog2
body: <p>I have a simple console app using Ninject, Ninject.Logging and Ninject.Extensions.NLog2  all build with latest nuget packages.</p>
  
  <p>My App does the following</p>
  
  <pre><code> _kernel = new StandardKernel();
   ILogger logger = _kernel.Get&lt;ILogger&gt;();
  </code></pre>
  
  <p>And I get a Null Reference exception from within <code>StandardKernel</code> when calling <code>Get&lt;ILogger&gt;()</code></p>
  
  <pre><code>System.NullReferenceException was unhandled by user code
    HResult=-2147467261
    Message=Object reference not set to an instance of an object.    
    Source=Ninject.Extensions.Logging
    StackTrace:
         at Ninject.Extensions.Logging.LoggerFactoryBase.GetLogger(IContext context) in     c:\Projects\Ninject\ninject.extensions.logging\src\Ninject.Extensions.Logging\LoggerFactoryBase.cs:line 61
     at Ninject.Extensions.Logging.LoggerModuleBase.&lt;Load&gt;b__0(IContext context) in c:\Projects\Ninject\ninject.extensions.logging\src\Ninject.Extensions.Logging\LoggerModuleBase.cs:line 26
     at Ninject.Activation.Providers.CallbackProvider`1.CreateInstance(IContext context) in c:\Projects\Ninject\ninject\src\Ninject\Activation\Providers\CallbackProvider.cs:line 45
     at Ninject.Activation.Provider`1.Create(IContext context) in c:\Projects\Ninject\ninject\src\Ninject\Activation\Provider.cs:line 38
     at Ninject.Activation.Context.Resolve() in c:\Projects\Ninject\ninject\src\Ninject\Activation\Context.cs:line 157
     at Ninject.KernelBase.&lt;&gt;c__DisplayClass10.&lt;Resolve&gt;b__c(IBinding binding) in c:\Projects\Ninject\ninject\src\Ninject\KernelBase.cs:line 386
     at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
     at System.Linq.Enumerable.&lt;CastIterator&gt;d__b1`1.MoveNext()
     at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
     at Ninject.ResolutionExtensions.Get[T](IResolutionRoot root, IParameter[] parameters) in c:\Projects\Ninject\ninject\src\Ninject\Syntax\ResolutionExtensions.cs:line 37
  </code></pre>
  
  <p>Is there any more config I need to go to get logging working?</p>