commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: LogFactoryImpl.java - SecurityException
Date Sun, 31 Mar 2002 00:35:19 GMT


On Wed, 27 Mar 2002, Tim Vernum wrote:

> The contact the logging has, is that it will attempt the following:
>  * Look a attribute set on Factory
>  * Look at system properties
>  * Try log4j
>  * Try JDK1.4
>  * Use Default (no-op?) log
>

This is definitely the desired contract.  Unfortunately, the code was
failing to fulfill it when running in an applet, or when a security
manager disallows reading the required system properties.  In such a case,
the checks for Log4J or JDK 1.4 logging were being skipped.  The new code
does these checks even if System.getProperty() threw a security exception.

Craig


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message