-->
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 do I turn off Hibernate log messages?
PostPosted: Thu Jul 01, 2004 9:22 am 
Beginner
Beginner

Joined: Wed Jun 23, 2004 12:37 pm
Posts: 20
I'm getting messages like this in my server log and want to turn them off.

Hibernate: select user0_.id as id, user0_.forename as forename, ...)


I have set the logger level to 'error' in log4j.properties like this

log4j.rootLogger=error, stdout

log4j.logger.net.sf.hibernate=error

Can anybody help.

My own loggers are controlled from the same file and behave as expected. I suspect that the log4j.properties file is not the place for these 'Hibernate: ...' type messages.

Cheers,

Nick


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2004 9:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
set show_sql = false in your hibernate config.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2004 6:10 am 
Beginner
Beginner

Joined: Wed Jun 23, 2004 12:37 pm
Posts: 20
Great. Many thanks for the quick reply


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.