• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate 3.1 rc2 and Log4J Question

 
AmbroseR Tati
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

After exploring Hibernate for the last few days, I've decided to replace our current persistence mechanism with Hibernate. All seems wonderful, so far, apart from the size of the log files (Log4J). Hibernate is logging everything,
which is quite too much for us, although useful for troubleshooting.

Could somebody please tell me how to disable some of the Hibernate log categories?

Many thanks in advance.
Ambrose
 
Peter Laurinec
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please locate your log4j.xml file a search log appenders for hibernate classes. There you change logging level to higher lever (for example WARN or ERROR).

You can find more info about log4j levels in Log4j manual

Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic