sburoff wrote:
How do I turn off the printing of logging information. I set
hibernate.show_sql to false in my hibernate properties file and
verify that it is in fact false when I create the Properties object.
However, the logging output still appears.
Hibernate uses a logging API, and logs much more than the produced SQL. The commons-logging and the log4j jars are included in the distribution, so I assume they are using a combination of those. This means that if you create a log4j.properties file on your classpath (before another log4j.properties is found) and put this content in it:
Code:
log4j.rootLogger = info, default
# "default" appender
log4j.appender.default=org.apache.log4j.FileAppender
log4j.appender.default.File=./logs/default.log
log4j.appender.default.Append=false
log4j.appender.default.layout=org.apache.log4j.SimpleLayout
You will get a default.log file in the logs directory with log entries of level info and above included in it.
http://jakarta.apache.org/commons/logging/ is a good place to look for more info.
HTH,
Maury