-->
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: Issue with log levels
PostPosted: Thu Jul 16, 2009 5:29 pm 
Newbie

Joined: Thu Jul 16, 2009 5:23 pm
Posts: 11
My application is printing all SQL statements it executes, for example:
Hibernate: select * from ( select hibernatee0_.id as ...
Hibernate: select * from ( select hibernatee0_.id as ...

How do I turn this off? I have my log4j configuration set to ERROR. The Hibernate logs are the only logs that are printed to the log file. The log4j config file location is correct, because when I change the root priority to INFO or DEBUG, I see the other logs printed.

Using hibernate 3.3.1

Any idea?

Thanks.


Top
 Profile  
 
 Post subject: Re: Issue with log levels
PostPosted: Thu Jul 16, 2009 8:54 pm 
Senior
Senior

Joined: Wed Sep 19, 2007 9:31 pm
Posts: 191
Location: Khuntien (Indonesia)
weeznat wrote:
My application is printing all SQL statements it executes, for example:
Hibernate: select * from ( select hibernatee0_.id as ...
Hibernate: select * from ( select hibernatee0_.id as ...

How do I turn this off? I have my log4j configuration set to ERROR. The Hibernate logs are the only logs that are printed to the log file. The log4j config file location is correct, because when I change the root priority to INFO or DEBUG, I see the other logs printed.

Using hibernate 3.3.1

Any idea?

Thanks.


Hi,

Try to remove this line
Code:
hibernate.show_sql=false

in your hibernate.properties
or
Code:
<property name="show_sql">true</property>

in your hibernate.cfg.xml


Top
 Profile  
 
 Post subject: Re: Issue with log levels
PostPosted: Fri Jul 17, 2009 9:51 am 
Newbie

Joined: Thu Jul 16, 2009 5:23 pm
Posts: 11
SIau_Tie wrote:
Code:
<property name="show_sql">true</property>

in your hibernate.cfg.xml


Thanks, this fixed my issue.


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.