-->
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.  [ 4 posts ] 
Author Message
 Post subject: Set Logging Level at Runtime
PostPosted: Mon Dec 08, 2003 8:16 pm 
Beginner
Beginner

Joined: Thu Nov 20, 2003 1:30 pm
Posts: 27
Is it possible to set the logging level at runtime?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 8:47 pm 
Pro
Pro

Joined: Tue Aug 26, 2003 8:07 pm
Posts: 229
Location: Brisbane, Australia
Hibernate uses jakarta-commons for it's logging, so the logging implemenation for Hibernate is pluggable.
So it depends on which logging implementation you're running with.
If you are using Log4j, then it is definitely possible.
See the log4j doco for instructions on how to do it.

_________________
Cheers,
Shorn.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 2:10 am 
Regular
Regular

Joined: Tue Sep 02, 2003 5:09 pm
Posts: 81
Location: Whitefish Montana
You can. Try passing something like:

Code:
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.defaultlog=trace


This tells Hibernate to use the SimpleLog implementation for logging and to set the logging level to trace. Supported levels include trace, debug, info, error, fatal, etc. You can find out more here: http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/impl/SimpleLog.html


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 11:21 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
stolley wrote:
If you are using Log4j, then it is definitely possible.

For sure, you can even do hot reloading of config

_________________
Emmanuel


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