I have NHibernate configured with log4net to output the SQL generated to the log file.
I am trying to figure out a way to display the SQL generated by NHibernate for a page request on the web page itself (mostly so that developers keep an eye on what’s going on ‘under the hood’).
Thanks in advance!
Beware that NHibernate in logging-mode outputs heaps of data and info.
In log4net you can set the output message ourself in the config-file.
A suggestion is to change the output to html and present the logging-file with a webserver installed on the server.