tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Tomcat 7 Logging Log4J - [INFO] org.apache.catalina.core.ContainerBase
Date Tue, 21 Jun 2011 10:31:27 GMT
2011/6/21 Björn Agel <bjoern@agel-rosen.de>:
> Hi there,
>
> I am using Log4j with the following log4j.properties for the Tomcat:
>
> /log4j.rootLogger=INFO, R
>
>    log4j.appender.R=org.apache.log4j.RollingFileAppender
>    log4j.appender.R.File=${catalina.home}/logs/tomcat.log
>    log4j.appender.R.encoding=UTF-8
>    log4j.appender.R.MaxFileSize=2MB
>    log4j.appender.R.MaxBackupIndex=10
>    log4j.appender.R.layout=org.apache.log4j.PatternLayout
>    log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
>    log4j.appender.R.append=true
>
>    log4j.logger.org.apache.jasper.compiler.TldLocationsCache=ERROR
>    log4j.logger.org.apache.tomcat.util.http.Parameters=ERROR
>    log4j.logger.org.apache.struts.util.MessageResources=ERROR
>
> //
>  log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[www.agel-rosen.de].[/]=INFO/
> //
>
> I want to get rid of the following WARN message which appears every minute:
>
> /2011-06-21 11:46:00,647 ["ajp-apr-8042"-exec-9] INFO
>  org.apache.catalina.core.ContainerBase.[Catalina].[www.agel-rosen.de].[/] -
> [WARN] PropertyMessageResources -   Resource ... Not Found. /
>
>
> As you can see I tried to disable appearing that message with
> "log4j.logger.org.apache.struts.util.MessageResources=ERROR" but it doesn't

The logger name in the message is
"org.apache.catalina.core.ContainerBase.[Catalina].[www.agel-rosen.de].[/]"

Whatever logs the message does call ServletContext.log() instead of
using a logging library. See [1].

[1]: http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Servlets_logging_API

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message