-->
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.  [ 2 posts ] 
Author Message
 Post subject: configuring log4j for hibernate
PostPosted: Mon Oct 23, 2006 2:31 pm 
Newbie

Joined: Mon Oct 23, 2006 2:26 pm
Posts: 2
Hello,

I am using hibernate3 with weblogic 8.1. I am trying to redirect the messages generated by hibernate to a log file. I have put log4j in my class path and put log4j.properties in the /web-inf/classes directory ( same as my hibernate.cfg.xml file) i then changed the logger to a file appender. i dont see the necessary file being created. Any suggestions?

Thanks
venu


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 23, 2006 6:45 pm 
Newbie

Joined: Tue Jul 04, 2006 3:42 am
Posts: 9
hi,

before intializating hibernate, i configured log4j myself, so that i didnt have to put the log4j.properties file (or whatever the name is - cause i am using log4j.config) to the root of the class path. This may work for you too.

Regards

Siyamed


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.