title: nHibernate disables my log4net logs
body: <p>So, we had a little ETL app that had some issues with updates. Which were nicely solved in an afternoon sprint with nHibernate. But this app relied upon log4net to push logging output to a few different destinations based upon command line switches. Once we got nHibernate wrapped into the app, it ETL'd flawlessly. But the logging functions failed completely. From the debugger's point of view, any of our loggers have all log4net's levels disabled.</p>
  
  <p>Here's the log4net config: </p>
  
  <pre><code>&lt;log4net&gt;
    &lt;appender name="RollingFile" type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="import-" /&gt;
      &lt;staticLogFileName value="false" /&gt;
      &lt;appendToFile value="false" /&gt;
      &lt;rollingStyle value="Date" /&gt;
      &lt;maxSizeRollBackups value="5" /&gt;
      &lt;datePattern value="yyyyMMdd-HHmm&amp;quot;.log&amp;quot;" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%date %-5level - %message%newline" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  
    &lt;appender name="Console" type="log4net.Appender.ConsoleAppender"&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%-5level : %message%newline" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  
    &lt;appender name="Email" type="log4net.Appender.SmtpAppender"&gt;
      &lt;to value="wwb@example.com" /&gt;
      &lt;from value="PeepsImporter@example.com" /&gt;
      &lt;subject value="Cte Importer Error" /&gt;
      &lt;smtpHost value="smtp.example.com" /&gt;
      &lt;bufferSize value="512" /&gt;
      &lt;lossy value="false" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%newline%date %-5level : %message%newline%newline%newline" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  
    &lt;root&gt;
      &lt;level value="ALL" /&gt;
    &lt;/root&gt;
  
    &lt;logger name="Console"&gt;
      &lt;level value="INFO" /&gt;
  
      &lt;appender-ref ref="Console" /&gt;
    &lt;/logger&gt;
    &lt;logger name="File"&gt;
      &lt;level value="INFO" /&gt;
      &lt;appender-ref ref="RollingFile" /&gt;
    &lt;/logger&gt;
    &lt;logger name="DebugConsole"&gt;
      &lt;level value="DEBUG" /&gt;
      &lt;appender-ref ref="Console" /&gt;
    &lt;/logger&gt;
    &lt;logger name="DebugFile"&gt;
      &lt;level value="DEBUG" /&gt;
      &lt;appender-ref ref="RollingFile" /&gt;
    &lt;/logger&gt;
    &lt;logger name="EmailErrors"&gt;
      &lt;level value="ERROR" /&gt;
      &lt;appender-ref ref="Email" /&gt;
    &lt;/logger&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <p>Not sure what other code would help, but I'm happy to post anything else from this app. </p>