当前位置:Gxlcms >
数据库问题 >
NHibernate和Castle调试过程中,如何输出SQL的问题
NHibernate和Castle调试过程中,如何输出SQL的问题
时间:2021-07-01 10:21:17
帮助过:22人阅读
.在log4net 标签下增加如下的增加如下:
< appender type =
" log4net.Appender.DebugAppender " name =
" DebugAppender" >
< layout type =
" log4net.Layout.PatternLayout ">
< param name =
" ConversionPattern " value =
" %d [%t] %-5p %c [%x] - %m%n" />
</ layout >
</ appender >
2.增加如下:
< logger name =
" NHibernate.SQL ">
< level value =
" DEBUG "/>
< appender-
ref ref =
" DebugAppender "/>
< appender-
ref ref =
" TraceAppender "/>
</ logger >
NHibernate和Castle调试过程中,如何输出SQL的问题
标签: