I will show you in this post two tricks you can do to enhance and add value to your nhibernate logs. Format Sql This is widely know trick, you can add a configuration setting to your hibernate.cfg.xml, app.config or web.config as follow: <property name="hibernate.format_sql" value="true"...
[This article was originally published on my personal blog here . I hereby grant myself permission to re-publish it on NHForge.org.] [Code for this article is available on GitHub here .] NHibernate 3 introduces support for both the .NET 3.5 Client Profile and .NET 4.0 Client Profile. This means that...
Recently there was a question in the NHUser group about how to configure Log4Net to log the queries generated by NHibernate. First of all: you can get Log4Net here . There you also find the documentation. If you are not sure about details of the configuration shown below please refer to this documentation...