So I’m using log4net to write log output to the trace. Show sql is specified in the configuration file. I seem to have to set the log output level to DEBUG to get the SQL output, but DEBUG also produces pages and pages of other guff I have to scroll past.
Can I get the SQL without the guff?
Thanks
David
You can add a logger for
NHibernate.SQLin thelog4netconfig block, like so:With the appender-config
(replace this with whatever you prefer, like
rollingFileAppender)Another option is using a tool like NHibernate Profiler.