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