As said in the title i want to stop Hibernate console output, without using log4j. I have tried to use log4j but i havent got anywhere.
What i want is the console INFO outputs to stop.
And if i am using log4j is it possible to do it without .properties or .xml files, just set the settings in the source.
tnx
As said in the title i want to stop Hibernate console output, without using
Share
Solution looks like adding slf4j-log4j12-1.5.2.jar in your classpath if you are using slf4j-api. This is other than configuration added for log4j for disabling logs.
This link should be useful.
http://ayushsuman.blogspot.com/2010/07/turning-off-hibernate-logging-console.html
You can also check other solutions from :
Can't stop Hibernate from writing log to console (log4j.properties is ok)