-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Customizing log4net for NHibernate
PostPosted: Wed Jun 22, 2005 4:40 am 
Newbie

Joined: Tue May 17, 2005 3:30 am
Posts: 10
Personally I find that NHibernate puts out rather an abundance of INFO messages and I think they rather belong to the DEBUG category.

At the moment I have no choice to set the log4net priority to WARN, however that means I don't see the INFO messages from my application I'd want to see. So I wonder if there's a way to set the priority to WARN for NHibernate only, instead for 'root'. Is there anyone who could tell me how to do that?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 22, 2005 8:46 am 
Newbie

Joined: Wed May 11, 2005 9:34 pm
Posts: 9
You can customize log4net to a great extent. This includes having a different logging level for your application and for NHibernate. Look at the last example on http://wiki.nhibernate.org/display/NH/C ... et+Logging where the appenders are defined (in the bottom). Also have a look at the log4net documentation at http://logging.apache.org/log4net/relea ... ction.html

Regards,
Lars Arne Brekken


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 22, 2005 5:32 pm 
Newbie

Joined: Fri May 13, 2005 7:46 pm
Posts: 17
You can also have appenders filter by matches, which might get you the messages you want to see while ignoring the others.


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

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.