You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2009/04/21 23:26:01 UTC
Re: [OT] Log messages appearing twice
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
SM,
Marking as OT because this is not Tomcat-related.
On 4/21/2009 12:15 PM, Security Management wrote:
> In the application log, separate file (the test.log). I only have 1
> copy of log4j.jar in the apache directory, too (my webapps copy).
>
> Here's an example:
> 2009-04-21 11:50:59,903 [main] DEBUG com.secmgmt.beans.picture.four.PPDoorProvider - Loading Door Provider
> 2009-04-21 11:50:59,903 [main] DEBUG com.secmgmt.beans.picture.four.PPDoorProvider - Loading Door Provider
[...]
> log4j.appender.A1=org.apache.log4j.FileAppender
> log4j.appender.A1.File=${catalina.home}/logs/test.log
>
> log4j.appender.A1.MaxFileSize=100MB
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>
> log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
>
> log4j.rootLogger=INFO, A1
This is either not your log4j configuration file, not your entire log4j
configuration file, or not the one actually being used: you have DEBUG
messages in your log file when your root logger specifically says that
INFO is the lowest level to log.
Care to post corroborating configuration and results?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAknuOekACgkQ9CaO5/Lv0PAyqwCgmlQNNHmAUZUeFxwbdkE6xXMQ
19UAoJWM8Cq+xRl0KWLZ9yTCcFv8cz0i
=U9JE
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org