This content has been marked as final.
Show 5 replies
-
1. Re: disable Hibernate logs
jaikiran Jan 23, 2009 5:38 AM (in response to rogersilvasauro)<category name="net.sf.hibernate">
<priority value="ERROR"/>
</category>
<category name="org.core.hibernate">
<priority value="ERROR"/>
</category>
The package names are incorrect. For Hibernate3, it should be:<category name="org.hibernate"> <priority value="ERROR"/> </category>
-
2. Re: disable Hibernate logs
rogersilvasauro Jan 23, 2009 7:10 AM (in response to rogersilvasauro)"jaikiran" wrote:
<category name="net.sf.hibernate">
<priority value="ERROR"/>
</category>
<category name="org.core.hibernate">
<priority value="ERROR"/>
</category>
The package names are incorrect. For Hibernate3, it should be:<category name="org.hibernate"> <priority value="ERROR"/> </category>
Hi jaikiran,
thanks a lot for helping :)
I've updated %JBOSS_HOME%/server/default/conf/jboss-log4j.xml file with your suggestion, but I'm still getting hibernate logs like this one:2009-01-23 10:01:35,504 INFO [STDOUT] Hibernate: select property0_.idproperty as idproperty3_, property0_.value as value3_, property0_.key as key3_, property0_.propertyType as property4_3_, property0_.description as descript5_3_ from property property0_ where idapplication=? and property0_.key=?
Please, Does somebody know how to prevent hibernate from logging this kind of stuff?
thanks in advance,
Roger -
3. Re: disable Hibernate logs
jaikiran Jan 23, 2009 7:54 AM (in response to rogersilvasauro)That's the SQL that's being printed. It should have been disable by your hibernate.show_sql=false setting. Can you post the entire console logs when your application starts deploying?
-
4. Re: disable Hibernate logs
itsme Jan 23, 2009 7:56 AM (in response to rogersilvasauro)Maybe this is useful:
http://www.hibernate.org/hib_docs/v3/reference/en-US/html/configuration-optional.html
We don't set this property and do not get these logs. -
5. Re: disable Hibernate logs
itsme Jan 23, 2009 7:58 AM (in response to rogersilvasauro)Does anybody by any chance start the jboss as with this hibernate property set as system property set to true ?