开发者

Is there a resource which describes all of the log4net loggers used by NHibernate?

开发者 https://www.devze.com 2023-01-08 20:06 出处:网络
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 desc

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消