-->
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.  [ 2 posts ] 
Author Message
 Post subject: how to turn off the hibernate logging at runtime?
PostPosted: Thu Apr 06, 2006 11:04 am 
Newbie

Joined: Thu Apr 06, 2006 10:50 am
Posts: 1
since i m using the hibernate in our application there are so many debug statements comes in application console. such as all sql dml statements.

now i want to turn on and off the logging at runtime through a button on jsp.

so how to do this please suggest me.


thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 1:39 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
If you are using log4j for logging under the hood of commons-logging then something like
Logger.getLogger( "desired logger name").setLevel( Level.ERROR/DEBUG );
should do

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.