-->
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.  [ 1 post ] 
Author Message
 Post subject: Turning off Hibernate log.INFO (Jboss 6)
PostPosted: Thu Jan 19, 2012 10:19 am 
Newbie

Joined: Thu Jan 19, 2012 10:13 am
Posts: 1
I'm running JBoss-6.1.0.Final, the "default" server. My app is using
Spring 3. In the bean def I've set show_sql=false and my log4j.properties
has no references to the hibernate log categories yet I still
get this output to the terminal for every sql call . Where, how to turn this off?

16:44:33,548 INFO [STDOUT] Hibernate: select cluseranci0_.ID as ID59_,
cluseranci0_.COHORT_ID as COHORT4_59_, cluseranci0_.ROLE_ID as ROLE5_59_,
cluseranci0_.USER_ID as USER6_59_, cluseranci0_.UPDATED_BY as UPDATED2_59_,
cluseranci0_.UPDATED_DATE as UPDATED3_59_ from HMM_OWNER.CL_USER_ANCILLARY
cluseranci0_ where cluseranci0_.USER_ID=? order by cluseranci0_.ROLE_ID


I am using a stnd (unaltered) "default" server.

Here is my bean definition.

<bean id="mmt_qa_HBP_Oracel_DataSourceJPAVendorAdapter"
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="false" />
<property name="generateDdl" value="false" />
<property name="databasePlatform" value="org.hibernate.dialect.Oracle9iDialect" />
</bean>


Here is my log4j.properties file

# STDOUT appender
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%d %p [%t] %C{1} - %m\n

# use the STDOUT appender. set the level to ERROR.
log4j.rootLogger=INFO, STDOUT
log4j.category.atomikos=ERROR, STDOUT
log4j.category.org.springframework=ERROR, STDOUT


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.