-->
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: Logging in version 2.0.3
PostPosted: Mon Oct 13, 2003 4:42 pm 
Newbie

Joined: Tue Sep 23, 2003 5:19 pm
Posts: 11
Hi

I am using hibernate version 2.0.3. and the standard Log4J logger version 1.2.8

A lot of the logging messages that where present in pervious version of hibernate have not disapeared.

How do I get all the logging messages to be displayed?

For example class net.sf.hibernate.loader.Loader logs at a level of Trace - which is not defined in Log4J.

Thanks

Richard


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 13, 2003 4:58 pm 
Newbie

Joined: Tue Sep 23, 2003 5:19 pm
Posts: 11
Can answer my own post!

Add the following magic to your code

BasicConfigurator.configure();
Logger.getLogger( "net.sf.hibernate").setLevel(Level.ALL);


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.