> -----Original Message-----
> From: Andre Prasetya [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 12:39 AM
> To: Tomcat Users List; [email protected]
> Subject: strange log4j behaviour
>
> Hi,
>
> I m using tomcat 5.5 and we're hosting 5 application. The problem is that
> 1
> of the application is not doing the log as expected. We're using commons
> logging and log4j. All of the log4j config is similar. and this is the
> log4j
> config file
Where is this log4j.properties file found in each case? You could try
placing it in WEB-INF/classes/ in the misbehaving app.
Is it only the classes in WEB-INF/classes which do not log or is it all
classes in that application?
I have *always* supplied log4j.properties in WEB-INF/classes, and never in a
jar. Since it does not appear anywhere in your list of files below, I have
to conclude it is contained in one of your jars.
> log4j.rootLogger=INFO,STDOUT,FILE
>
> log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
> log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
> log4j.appender.STDOUT.layout.ConversionPattern=%5p %d{HH:mm:ss} [%t] %c{1}
> -
> %m%n
>
> log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.FILE.DatePattern=yyyy-MM-dd
> log4j.appender.FILE.layout.ConversionPattern=%5p %d{HH:mm:ss} [%t] %c{1} -
> %m%n
> log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
>
> log4j.appender.FILE.File=/opt/gateway/logs/LegacyEngine.log
>
> log4j.logger.com.mchange=WARN
> log4j.logger.com.csp=INFO
> log4j.logger.com.ricochet=INFO
>
[snip]
Tim
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]