views:

33

answers:

2

Hi!

I configured Nhibernate and log4net to log queries executed by nhibernate. Is there any way to log each query execution time?

+1  A: 

Just configure your ConversionPattern to use the '%d' parameter. Look at this example.

Guilherme Oenning
+1  A: 

You might want to try nhibernate profiler. It has 30 day trial which is enough to figure out what's happening and catch all problems. And it's a nice tool in general - worth buying in case You rely on nhibernate heavily.

Arnis L.