tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: In Tomcat JULI, do the 'facility specific' loggers become per-webapp logger roots?
Date Wed, 09 Oct 2013 13:59:34 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

David,

On 10/9/13 9:25 AM, David Bullock wrote:
> Nice.  Virtual Class Loader seems like a good general solution to
> the problem that's been un-necessarily introduced by JULI, as well
> as many other similar problems.

Suggestions (especially with patches) are always welcome.

>> Or, fix your packaging and/or deployment so that it builds the
>> correct WAR file for your environment.
> 
> No thanks.  The WAR is the distributable unit.  All 
> deployment-specific information must persist in the container
> between re-deploys, and therefore must not live in the WAR itself.
> Why the creators of JULI thought it would be a great idea to
> require a WEB-INF/classes/logger.properties is beyond my
> comprehension.

Because loading logging.properties from the classpath is what users of
java.util.logging have come to expect. The ClassLoaderLogManager
doesn't have a great deal of context, so it's hard to have it decide
things like where to load logging.properties from. You can't use
anything webapp-context-sensitive because that information simply
isn't available.

I can't find anywhere to configure the context's LogManager, so it's
not like writing your own would do any good.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSVWFEAAoJEBzwKT+lPKRYAAcP+weg/vyBn3VosgG2vJuyEVSm
fNASx/usRdTlj039jV/n27ZyMBCiw7xxwdD+haqWp2gzXRSuubAq1oGYOBHWZ5j1
Y7JF426iB/OUe/dX2CFwCY560yWChbpa2pUYipR69STaUrH9sd6zV9rh9g2vmMs6
sJgPkk77SF5+lD26nxyj+oiHzOBHSKop6470gTZkmdrq8VNqcqtcPVns7lC1y7vw
+DJZxCqbiYyZ7u64AR0VyEmJUeO/SGYSyZ4OhsA/c/YdHjlA5qKSM8RQQFufYN3F
CWrlukG/puIKG/Y5JWR2DP7HIdRU3s/GMffDV+qFrU2M+Udel2v1dR3AG3P3m/1E
tgYviUrfRWSPIFBJ7m8zIb75SNXQmMI67McGH6o9EAMtWQhPLNIadaqmYVAsDBYB
v1zMxPW2wAdbRtS7qqmzK+PnY0QVC5c18S7ItC4aPmT/D4oew8neLl6Nge9CtjlS
4XdrruozLN3+nBPFUPjhhAYlZcmbQW60BKSAesM6RHoCCw36DRhC8UpWSCqw7Ao6
4TJClAzH/Y9cIa+ZAUGJYhljDSnKara1cKujRVZrCOvJVJV9tM54MHsN9BSprMUx
W8zK6icoHP69LeJDY6NcAb3gK8rQCT9+Q5O2OjHoM9rvUdxfyKddQ6e7YMDqxnQe
WdbeI/uwn+ptB773rs1H
=xDKB
-----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