-->
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: Enable log level "debug"
PostPosted: Mon Sep 22, 2003 7:12 am 
Regular
Regular

Joined: Mon Sep 08, 2003 4:53 am
Posts: 70
Location: Germany
I read in the Hibernate documentation, that there's al log level debug, that contains very useful information while debugging.

I'm using Hibernate 2.0.3, Eclipse 2.11 and JSDK 1.4.2. Eclipse uses the logger from JSDK as standard. Could anybody tell me, how I'm able to use the debug log level from Hibernate?

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Enable log level "debug"
PostPosted: Mon Sep 22, 2003 4:57 pm 
Newbie

Joined: Tue Aug 26, 2003 9:45 am
Posts: 17
Location: Toronto, Canada
andreas wrote:
I read in the Hibernate documentation, that there's al log level debug, that contains very useful information while debugging.

I'm using Hibernate 2.0.3, Eclipse 2.11 and JSDK 1.4.2. Eclipse uses the logger from JSDK as standard. Could anybody tell me, how I'm able to use the debug log level from Hibernate?

Thanks in advance.


If you're using log4j as the backend logger, you would add something like:

log4j.logger.net.sf.hibernate=trace
or
log4j.logger.net.sf.hibernate=debug

to get extra details, depending on what level of info you want. trace will for example show you the parameters values which are inserted into the prepared statements (the ? replaceable values).

Regards,

-- Colin Sampaleanu


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2003 4:50 am 
Regular
Regular

Joined: Mon Sep 08, 2003 4:53 am
Posts: 70
Location: Germany
Thanks, it works very well!


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.