I followed this post (and the links therein)
http://nhibernate.sourceforge.net/forum ... ht=log4net
and have a few questions. First, I want to disable DEBUG for NHibernate only, since it is crippling the server. I need to output DEBUG for my class library logging code.
To accomplish this I have configured log4net in the web.config with 1 appender, ADONetAppender and 2 loggers:
Code:
<root>
<level value="DEBUG" />
<appender-ref ref="ADONetAppender" />
</root>
<logger name="NHibernate" additivity="false">
<level value="WARN" />
<appender-ref ref="ADONetAppender" />
</logger>
<logger name="Foundation" additivity="false">
<level value="DEBUG" />
<appender-ref ref="ADONetAppender" />
</logger>
How can I get NHibernate to USE the logger specified above and not the root? Also, how do I get MY logging to use the 2nd logger there?
I have not been able to see any examples of this yet online.