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
|