Hibernate Books

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: It is possible to change the log level used by NHibernate?
PostPosted: Mon Apr 09, 2012 9:11 am 
Newbie

Joined: Fri Jan 01, 2010 12:17 pm
Posts: 4
Hi,

I'm using NHibernate in a project which uses Log4Net and the logging all worked out-of-the-box :-)

My problem is that it seems to log every single select statement at INFO level. In my application I followed what I believe to be standard practice of using INFO to report events which, whilst not a warning, are significant (e.g. system started up, user was timed out) and I use DEBUG when I want to generate masses of trace output about every little thing that's going on.

Is there any way to change the verbosity of the NHibernate logging so it uses the DEBUG level to log every SQL statement and INFO only for more interesting information?

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.