Hibernate Logging

matthew016
matthew016 used Ask the Experts™
on
Hi,

I am flooded by DEBUG logs of Hibernate,

how can I change the level of logging to INFO or ERROR ?

Thank u.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
I had been using something similar to this in the past: http://ideoplex.com/id/386/controlling-hibernate-output-with-log4j 

Do you search something like this?
Mick BarryJava Developer
Top Expert 2010
Commented:
log4j.logger.org.hibernate=info
Mick BarryJava Developer
Top Expert 2010
Commented:
or if using xml:

      <logger name="org.hibernate">
            <level value="info"/>
      </logger>      
Commented:
If you know where the logging is controlled - objects gave you the exact commands to be used.

Author

Commented:
Sorry to be late in splitting points

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial