File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes hibernate logs to disable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "hibernate logs to disable" Watch "hibernate logs to disable" New topic

hibernate logs to disable

Muse Ran
Ranch Hand

Joined: Sep 17, 2008
Posts: 317
Hi all
i am using log4j.xml to logging. I want to disable all hibernate related logs from in the logger. for that what i have to do (write) in log4j.xml

please advise


Tomorrow will surely be a new day!!!
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

Hi there,

Yes you can exclude certain APIs from being logged at certain levels by using categories, try this:

<category name="org.hibernate">
<priority value="WARN"/>

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
I agree. Here's the link:
subject: hibernate logs to disable
It's not a secret anymore!