This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

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

thanks


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

Joined: Jun 24, 2003
Posts: 3275
    
    5

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"/>
</category>


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
Have you checked out Aspose?
 
subject: hibernate logs to disable
 
It's not a secret anymore!