Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

162 lines (120 sloc) 7.41 kB
Copyright 2005,2006 The Apache Software Foundation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
Commons Logging Package
Version 1.1.0
Release Notes
This release of Jakarta Commons Logging (JCL) is a maintenance release, with a
few new configuration features but no major changes in services provided.
This release introduces significant changes in the way that discovery of
logging implementations occurs, and how errors are handled. A number of
problems that have troubled users in past releases (particularly the
"Log4JLogger does not implement Log" problem) will hopefully be
significantly reduced or cured.
This release is 100% compatible with existing code that calls
commons-logging. There are some incompatibilities with code that extends
commons-logging, for example to implement custom logging adapters. See
the compatibility section for details.
For further details, please see the Jakarta Commons Logging website:
For the very latest news, hints, FAQs etc. please see the
Jakarta Commons Logging wiki site:
== New Features ==
* Jarfiles now have release-numbers embedded in the names, for easier management.
* New jarfile commons-logging-adapters-xxx.jar is now provided. This can be
used to resolve class cast conflicts where parts of commons-logging are
deployed via different classloaders.
* New internal diagnostics feature. If commons-logging is behaving in an
unexpected manner, you can now set system property
to the value STDOUT, STDERR or a filename. As commons-logging initialises
itself for each new contextClassLoader it detects, useful information will
be output about which logging library is bound to and why.
* JCL now prefers to "make a best attempt" in problem scenarios rather than
report an error and fail to initialise. New configurable attributes
provided to control startup behavior. The default values for these are all
true, meaning that commons-logging attempts to recover from bad logging
configuration situations by finding *some* logger to use even when it isn't
quite the one that might be expected. This will significantly reduce the
occurrence of the dreaded LogConfigurationException on application/webapp
startup at the cost of slightly more ambiguity about where output will go.
In cases where no logging output is generated or wanted (which is the case
99% of the time) this is definitely a more convenient approach. Users who
cannot figure out where logging went or why it went to an unexpected
destination can enable diagnostics to find out, or set the ALLOW_FLAWED_
settings to false to force LogConfigurationException to be thrown as in
earlier releases.
* Fix for the problem where memory was not being released under some circumstances
when a webapp was undeployed. An internal change fixes some situations where
that occurs (by using weak references); this requires no action on the part of
users of this library. In addition, a utility class ServletContextCleaner is
provided in the jarfile which is expected to resolve this problem in all
situations; however it is necessary for an application to define this class as
a ServletContextListener in the web.xml in order for this to be invoked.
* Prioritised files. A file with the name
"" placed in the classpath can be used to set
various JCL configuration options. In previous releases, the first
such file found in the classpath was used to configure JCL. Now, each file
can have an entry "priority", and the file with the highest priority is used.
Where two files have equal priority, the first one in the classpath is used;
this maintains backwards compatibility.
* New feature to disable loading of logging classes via the thread context
classloader (TCCL), on a per-webapp basis. Simply putting an entry
"use_tccl=false" in a file will ensure that
all classes used for logging are loaded via the same classloader that
loads the LogFactory class. This resolves any "class cast" issues with
JCL, though at the price of losing some control over logging configuration.
* The log4j logging adapter now supports the TRACE level (added to log4j 1.2.12).
Formerly, any calls to log.trace were output at the log4j debug level.
== Incompatibilities ==
There are no changes for code that calls LogFactory or Log methods. This means
that any application which is a simple "user" of the JCL library can safely
upgrade to this version.
All changes to JCL configuration are backwards compatible.
For code that extends the JCL LogFactoryImpl class, the isXXXAvailable methods
in org.apache.commons.logging.impl.LogFactoryImpl are no longer called during
discovery by that class. Therefore classes which subclass LogFactoryImpl and
override those methods will not have their methods called. This is a pretty
unusual thing to do, so it isn't expected that any apps will actually be
affected by this.
== General Notes ==
Log4J 1.3 is expected to include a binary-incompatible change from the 1.2 series that
unfortunately makes it impossible for a single adapter class to support both.
This release does not include support for Log4J 1.3.
== Bugs Fixed ==
* 31597: problem where log4j adapter was in parent classloader but log4j.jar was
in child classloader led to failure to initialise logging has been
* 31710, 10825: commons-logging now works better in systems where getClassLoader
returns null. This essentially means embedded systems.
* 31818: workaround for bug in java1.2 compiler; code now compiles under 1.2
* Log4JCategoryLog has been removed from the main distribution jar; it has been
deprecated for a long while. Replacement class Log4JLogger should be a completely
transparent replacement for all commons-logging users.
* package.html files are no longer present in the jarfiles, removing nuisance
javadoc warnings when building javadoc for apps using jcl.
* In several cases, LogConfigurationException objects were being wrapped in
other LogConfigurationException objects. These have (hopefully) all been
(These are carried forward from Version 1.0.4)
[LogSource] Previously deprecated, replaced by LogFactory.
[Log4jFactory] A proxy instance of this class was transparently created
when Log4J logging was selected, yet it serves no useful
purpose. The class is now deprecated, and the proxy
instance is no longer created.
Jump to Line
Something went wrong with that request. Please try again.