-->
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: How to suppress Hibernate start-up messages
PostPosted: Thu Feb 26, 2004 1:48 pm 
Newbie

Joined: Thu Feb 26, 2004 1:38 pm
Posts: 2
When I start up Hibernate (i.e add the mapping file and build a session factory), I always get a long output in the command console showing the (each class mapped, connection properties, reflection optimizers, etc.). Is there a way I can suppress these messages and get a "quiet" startup? Thanks a lot!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2004 2:56 pm 
Regular
Regular

Joined: Tue Aug 26, 2003 3:09 pm
Posts: 58
It's just log output using commons-logging. Configure log4j (or whatever logging library you use) as appropriate. I think there's even a default log4.properties bundled with the source.


Top
 Profile  
 
 Post subject: Thanks!
PostPosted: Thu Feb 26, 2004 4:58 pm 
Newbie

Joined: Thu Feb 26, 2004 1:38 pm
Posts: 2
I included the log4j property file and set the logging to a file. Now all logging messages go to a file.


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.