[slf4j-user] Slightly OT: configuring Hibernate logging level and SLF4J using JDK 1.4 logger

Robert Elliot rob at lidalia.org.uk
Thu Dec 9 14:22:19 CET 2010


You are misunderstanding the entire SLF4J/Logging paradigm.  You don't tell Hibernate (or SLF4J) what to log - you tell the logging backend what to do with the messages Hibernate logged.  And to do that you need to configure the logging backend.

> I disagree, because Hibernate causes all the INFO log entries and it
> DEPENDS on SLF4J. My choice for the JDK logger was purely for
> simplicity. However, there must be a way to tell Hibernate to only log
> starting from warning level. That's what I want to know. Configuring
> the JDK logger here doesn't make much sense because Hibernate will use
> whatever I have chosen. If I switch to another SLF4J logger
> implementation then the same problem would reappear, so your answer
> isn't really helpful.
> 


More information about the slf4j-user mailing list