-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate & Logging to Log4j
PostPosted: Tue Mar 14, 2006 12:58 pm 
Newbie

Joined: Tue Mar 14, 2006 11:52 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.