views:

31

answers:

2

I would like to heavily customize my NHibernate logging for performance diagnosis reasons. Is there a resource of all of the available loggers? Even better would be a resource describing what each logger logs at the various log levels.

+2  A: 

One suggestion would be to examine the source for nhibernate itself; the folder / namespace hierarchy should give you a rough idea of the available loggers.

DanP
A: 

One possibility is to setting a logger for "NHibernate" and log all messages for a few sessions. I did this and was able to see a lot of hierarchal loggers (especially configuration and connection), but the stuff under "NHibernate.SQL" was notably missing. I suppose there is a weird log4net hierarchy configuration somewhere in there.

Joseph Daigle