Hmmmm,

In the documentation of Struts 1.3.10 it says they are using commons-logging API. I configured Tomcat to use log4j, so I don't know where the calls to ServletContext.log() should come from.
Any ideas?

with best regards,
Björn


Am 21.06.2011 12:31, schrieb Konstantin Kolinko:
2011/6/21 Björn Agel<bjo...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




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

Reply via email to