I would like to heavily customize my NHibe开发者_StackOverflowrnate 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.
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.
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.
精彩评论