You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Sven Schliesing <sv...@schliesing.de> on 2006/03/17 00:02:00 UTC

log4j not logging 3rd-party-tool-messages in an webapp under tomcat 5.5

Hi,

I have this log4j.properties-file within my webapp:
---------------------------
log4j.rootLogger=DEBUG,stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d{ISO8601}, %-5p] {%x} 
%.40c:%L: %m%n
---------------------------

The webapp runs under Tomcat 5.5.15. I would expect this config-file to 
litter my console with tons of log messages. But it only displays the 
messages from my webapp. None of the 3rd-party-tool-messages, like from 
hibernate or oscache, make it to the console.

Even an explicit logger-declaration for eg. hibernate does not work:
log4j.logger.org.hibernate=DEBUG

The config file is really read by the application. So when I change
log4j.rootLogger=DEBUG,stdout
to
log4j.rootLogger=INFO,stdout
no DEBUG-messages from my application get displayed anymore.

Did I miss something in the configuration?

Many thanks in advance!


Sven

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org