How to disable Hibernate flood logs
Hibernate floods my IDE console with tons of unnecessary information every time I connect. I've already read the documentation and googled trying to fix this problem, but so far the problem "persists".
My persistence.xml:
< persistence >
...
< property name="hibernate.show_sql" value="false" />
< property name="hibernate.use_sql_comments" value="false" />
< property name="hibernate.generate_statistics" value="false" />
...
My log4j.xml:
...
< logger name="org.hibernate" >
< level value="NONE" />
< appender-ref ref="MY_LOG" />
< appender-ref ref="STDOUT" />
< /logger>
...
I have no other log4j configuration in my project and even in my environment. Anyone there figured out how to disable the Hibernate console logs? Maybe has something I didn´t understand?
I'm using Hibernate 3.5, Tomcat 6.0 and Eclipse 3.3.
Thanks in advance.
+2
a source to share
3 answers
I'm not sure if "NONE" is a valid level in log4j (maybe it is). You can try changing the level to "OFF" (or at least "WARN" or "ERROR").
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html
0
a source to share
There could also be Tomcat's internal log , especially if it logs connection and excerpt information.
0
a source to share