If you're using log4j, you have several options for disabling logging.
1. To disable all hibernate logging, change this line in your log4j.properties file:
Code:
log4j.logger.net.sf.hibernate=info
to: =warn or =error or =fatal.
2. To disable
most of the configuration logging, add this to your log4j.properties file:
Code:
### log configuration
log4j.logger.net.sf.hibernate.cfg=warn
3. Or you could temporarily disable hibernate logging with:
Code:
org.apache.log4j.Logger.getLogger("net.sf.hibernate").setLevel(org.apache.log4j.Level.WARN);
and then reset logging after startup with:
Code:
org.apache.log4j.Logger.getLogger("net.sf.hibernate").setLevel(org.apache.log4j.Level.INFO);