NHibernate - registration

I am using log4net with NHibernate and I am logging SQL queries generated by NHibernate.

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

+2


source to share


2 answers


You should just add another node logger to your config file for NHibernate.DML. This will record both.



0


source


Not. Unfortunately, there is no built-in way for what you want.



0


source







All Articles