是否有描述 NHibernate 使用的所有 log4net 记录器的资源?
出于性能诊断的原因,我想大量定制我的 NHibernate 日志记录。是否有所有可用记录器的资源?更好的是描述每个记录器在不同日志级别记录的内容的资源。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一个建议是检查 nhibernate 源本身;文件夹/命名空间层次结构应该让您大致了解可用的记录器。
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.
一种可能性是为“NHibernate”设置记录器并记录几个会话的所有消息。我这样做了,并且能够看到很多分层记录器(特别是配置和连接),但“NHibernate.SQL”下的内容明显丢失。我想那里有一个奇怪的 log4net 层次结构配置。
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.