title: nHibernate output sql logging during unit testings
body: <p>I'm running unit tests from inside VS2008 against a nHibernate application and would like to turn on logging during the unit tests so I can see a bit more of what is going on.  I've copied and pasted another application's app.config that successfully logs nhibernate information into the unit tests app.config, but still don't get any output.  </p>
  
  <p>Here is my app.config for the testing project:</p>
  
  <pre><code>&lt;log4net&gt;
      &lt;appender name="NHibernateFileLog" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file value="Logs/nhibernate.txt" /&gt;
        &lt;appendToFile value="true" /&gt;
        &lt;rollingStyle value="Size" /&gt;
        &lt;maxSizeRollBackups value="10" /&gt;
        &lt;maximumFileSize value="100KB" /&gt;
        &lt;staticLogFileName value="true" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%d{HH:mm:ss.fff} [%t] %-5p %c - %m%n"  /&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;
  
      &lt;appender name="GeneralLog" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file value="Logs/general.txt" /&gt;
        &lt;appendToFile value="true" /&gt;
        &lt;maximumFileSize value="100KB" /&gt;
        &lt;rollingStyle value="Size" /&gt;
        &lt;maxSizeRollBackups value="5" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%d{HH:mm:ss.fff} [%t] %-5p %c - %m%n"  /&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;appender name="DataLog" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file value="Logs/data.txt" /&gt;
        &lt;appendToFile value="true" /&gt;
        &lt;maximumFileSize value="100KB" /&gt;
        &lt;rollingStyle value="Size" /&gt;
        &lt;maxSizeRollBackups value="5" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%d{HH:mm:ss.fff} [%t] %-5p %c - %m%n"  /&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;
  
      &lt;!-- levels: DEBUG, INFO, WARN, ERROR, FATAL --&gt;
  
      &lt;root&gt;
        &lt;level value="DEBUG"/&gt;
        &lt;appender-ref ref="GeneralLog" /&gt;
      &lt;/root&gt;
  
      &lt;logger name="NHibernate" additivity="false"&gt;
        &lt;level value="DEBUG"/&gt;
        &lt;appender-ref ref="NHibernateFileLog"/&gt;
      &lt;/logger&gt;
      &lt;logger name="Pushable.Data" additivity="false"&gt;
        &lt;level value="DEBUG"/&gt;
        &lt;appender-ref ref="DataLog"/&gt;
      &lt;/logger&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <p>When I run the test project, no output is created anywhere from log4net.  Does the application that log4net runs under have to be a web or windows and not a testing application?</p>