This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply 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: 316
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: 3268

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hibernate logs to disable
 
Similar Threads
my logs!, who ate my logs?
How to configure log4j.xml to log only WARN and above logs in JBOSS?
prob in JBoss and log4j
Different Appender for each level
use of log4j.xml