5 Replies Latest reply on Mar 26, 2009 12:26 PM by dmitri.ilyin

    hibernate + log4j.xml = can not get it work

      hi,

      i have stupid problem. I have a simples jpa configuration, one class woth JPA anotation ud one unit test. I wanted to see hibernate output nad have put log4j.xml file in the classpath. But i don't see log statements from hibernate.
      i see just INFO "common" statements about initialisation but nothing about queries and parameters. It seems that my log4j.xml will be not found.

      Are there any tricks? I have already searched but found only tutorials how to configure log4j properly. I mean i have done all correctly.

      <category name="org.hibernate">
       <priority value="TRACE"/>
       <appender-ref ref="CONSOLE"/>
      </category>
      

      But it still not work.

      any ideas?

      thanks a lot for any advises
      regards
      Dmitri