2

Just cannot manage to make nlog log sql queries generated by nhibernate in a asp.net mvc application.

Is there any example opensource application using nlog and nhibernate to look at (codeplex, github, bitbucket)?

Any article how to make them work together?

NHibernate 3, Nlog 2

Thanks!

1 Answer 1

3

Fixed it finally. Used NHibernate.Nlog package, and did it as it is said there. Still had to create a separate NLog.config, and put a magic string into the web.config. Fluent NHibernate doesn't want to expose this. I have no idea why.

1
  • @Mike_G any chance you could post your final working configuration? I'm dealing with a similar problem here: stackoverflow.com/q/17621706/8151 and have also tried the package you used to no avail....
    – cori
    Commented Jul 13, 2013 at 1:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.