Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate logs to disable

 
Muse Ran
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic