Hi,
I’m facing one problem hibernate cache logging is not working in 3.6.0.Final version. But I found jdbc and transactions loggings are working. Please find below my log4j.properties and jar files I’m using in my classpath (I’m testing on JBoss5.1.0GA)
Jars: Hibernate-3.6.0.Final.jar hibernate-entitymanager-3.4.0.GA.jar hibernate-jpa-2.0-api-1.0.0.Final.jar hibernate-validator-4.1.0.Final.jar slf4j-api-1.6.1.jar slf4j-ext-1.6.1.jar slf4j-jcl-1.6.1.jar slf4j-jdk14-1.5.11.jar slf4j-jdk14-1.6.1.jar slf4j-log4j12-1.6.1.jar slf4j-nop-1.6.1.jar slf4j-simple-1.6.1.jar log4j-1.2.16.jar
log4j.properties:
### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
log4j.rootLogger=error, stdout
log4j.logger.org.hibernate.cache=debug
|