Hy,
I got a servlet which does its logging via log4j. I now want to use hibernate and to do the logging into the already existing log4j-file.
My Log4J.properties says:
Code:
log4j.rootLogger=DEBUG,d
log4j.appender.d=org.apache.log4j.FileAppender
log4j.appender.d.Append=true
log4j.appender.d.layout=org.apache.log4j.PatternLayout
log4j.appender.d.layout.ConversionPattern=[%d{ISO8601}] %-5p [%c] %m%n
log4j.appender.d.File=D:/webroot/servlets/domfw/WEB-INF/logs/domfw_log.log
log4j.logger.org.hibernate=d
log4j.logger.org.hibernate.type=d
log4j.logger.org.hibernate.cfg=d
Im not sure about the last part. This config works for my own logging-Entries, but all Log-Entries which are created by hibernate go into the tomcat-log (catalina.log) where they are quite useless.
How can I change this? I know the faq-entry here at hibernate.org, but I dont know what to add to my log4j-config to make it work.
Thanks
TO