• 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

some internal library in Hibernate logs even though logging is set to error.

Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am using Hibernate with Spring, and using log4j for logging, and i have set the log level to Error.
But although most of the logging messages by Hibernate go away at this log level, some messages still appear.

Here's my log4.properties

Here's applicationContext.xml

When i run the application, i get the following logs

Note that log4.properties is picked up by the application(i can see from the fact that logging changes when i give the level as INFO, log messages seem to increase, but in no case, can the above log messages could be avoided).

With limited knowledge of log4j, my guess is that some other library which hibernate uses might not be using log4j and so is logging these messages.

How is it possible to remove these logging messages above?

Thank you

Rahul Babbar
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone elaborate on what they think on the above problem?
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic