tags:

views:

35

answers:

1

I'm using log4net with NHibernate and i'm logging SQL statements generated by NHibernate.

Is there any way to instruct NHibernate to only log DML SQL statements (inserts, updates, deletes), for example something like "NHibernate.SQL" + ".DML" in log configuration?

A: 

You should just be able to add another logger node to your configuration file for NHibernate.DML That will log both.

Aaron Fischer