disable hibernate logging in cosole

Posted by ganiOz on Stack Overflow See other posts from Stack Overflow or by ganiOz
Published on 2010-05-12T00:26:51Z Indexed on 2010/05/12 0:34 UTC
Read the original article Hit count: 266

Filed under:

Hi,

My log4j.properties looks like log4j.rootCategory=DEBUG, A1

log4j.appender.A1=org.apache.log4j.RollingFileAppender log4j.appender.A1.File=InteroperabilityFatal.log log4j.appender.A1.MaxFileSize=1000KB log4j.appender.A1.MaxBackupIndex=1000 log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%p %t %c - %m%n log4j.appender.A1.Threshold=FATAL log4j.appender.A1.Append=true log4j.logger.org.hibernate=FATAL log4j.logger.org.hibernate.sql=FATAL log4j.logger.org.hibernate.hql=error

I want only fatal logs into the file and nothing in console.

But hibernate is logging all its info in console. Can someone pls let me know a way to stop this?

I tried in eclipse and from executable jar file, still the hibernate is keep logging in console.

Thanks in advance for help.

© Stack Overflow or respective owner

Related posts about hibernate