-->
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: Logging is not working (DUPLICATE, SORRY)
PostPosted: Wed Dec 05, 2007 11:11 am 
Newbie

Joined: Thu Aug 09, 2007 9:50 am
Posts: 9
Hi all

I've just started using hibernate so sorry if this question is too stupid.

I want to use log4j for logging sql statements and many other hibernate messages. I've read the manual and tried to do it myself but it doesn't work.

I use hibernate 3.2, Java 1.6, and Apache Tomcat 6.

The structure of my project is something like this:

Root
--- files
--- images
--- web-inf
--- src
--- lib
--- classes

I have both "hibernate.cfg.xml" and "log4j.properties" under the WEB-INF/CLASSES directory and the "log4j.jar" library under WEB-INF/LIB.

The output of the logging should be a "hibernate.log" file but when i run the application this file is not created (The application works fine).

Any ideas? Thanks in advance!!

Aitor

P.D.: if you need more details just ask for them


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