commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13201] - Remove default log4j configuration
Date Wed, 23 Oct 2002 16:24:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13201>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13201

Remove default log4j configuration





------- Additional Comments From rsitze@apache.org  2002-10-23 16:24 -------
The issue here is between those who
a) want to use commons-logging (with default behaviour) out-of-box,
b) want to use commons-logging in a Log4J enabled application, out-of-box.

Both have reasonable requests & desires... the problem may be Log4J's
difficult bootstrapping mechanism.

It's been proposed (but nothing has yet been done) that the current content
be packaged in a number of different ways:

Create a commons-logging-XYZ.jar for each of LogKit, JDK14, SimpleLogger, ?
containing:
    Log, LogFactory, appropriate LogImpl
    commons-logging.properties
       org.apache.commons.logging.Log=org.apache.commons.logging.impl.XYZ

We could include TWO versions for Log4J if we change the current logic
to NOT automatically defer to the Log4jFactory:

a)  Log, LogFactory, appropriate LogImpl
    commons-logging.properties
       org.apache.commons.logging.Log=org.apache.commons.logging.impl.XYZ

b)  Log, LogFactory, appropriate LogImpl, Log4jFactory
    commons-logging.properties
       org.apache.commons.logging.LogFactory=
              org.apache.commons.logging.impl.Log4jFactory

the first would work in an environment pre-enabled for Log4J.
The second would work in a clean environment.


So... the solution would be to grab the jar file that fits your environment.

--
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