tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: log4j w/apache
Date Fri, 03 Jul 2009 02:31:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris,

On 6/25/2009 8:54 AM, Christopher Piggott wrote:
> log4j.logger.org.apache.commons.digester.Digester=WARN, nowhere
> log4j.logger.org.apache.commons.digester.Digester.sax=WARN, nowhere

Strictly speaking, it doesn't matter what level (e.g. WARN) you choose
if you've going to send everything to the bit bucket.

> log4j.appender.nowhere=org.apache.log4j.varia.NullAppender
> log4j.additivity.nowhere=false

This is only required is you really don't want to see /anything/ from
Apache classes. I would recommend just setting the Apache-classes logger
to WARN like this:

log4j.logger.org.apache=WARN

...and leave it at that. You might actually want to see warnings from
these classes, but certainly TRACE-level detail from them is is way too
much to see.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpNbXsACgkQ9CaO5/Lv0PBcUQCgv1GzD+FlKUiTKSRJikVR3LTm
i5UAoI9ds2H9z7j0m6jBhZBeQwYZqtqi
=JAIq
-----END PGP SIGNATURE-----

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


Mime
View raw message