Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Hibernate 3.1 rc2 and Log4J Question

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.
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.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic