Apache Commons logo Commons Logging

Release Notes

Release History

Version Date Description
1.3.4 2024-08-16 This is a feature and maintenance release. Java 8 or later is required.
1.3.3 2024-06-30 This is a feature and maintenance release. Java 8 or later is required.
1.3.2 2024-05-11 This is a feature and maintenance release. Java 8 or later is required.
1.3.1 2024-03-16 This is a feature and maintenance release. Java 8 or later is required.
1.3.0 2023-11-26 This is a feature and maintenance release. Java 8 or later is required.
1.2 2014-07-11 This is a maintenance release containing bug fixes. Java 6 or later is required.
1.1.3 2013-05-23 This is a maintenance release containing bug fixes.
1.1.2 2013-03-20 This is a maintenance release containing bug fixes.

Release 1.3.4 – 2024-08-16

Type Changes By
Fix Fix factory loading from context class loader #280, #281. Fixes LOGGING-192. Thanks to Björn Kautler, Piotr Karwasz. pkarwasz
Update Bump org.apache.commons:commons-parent from 71 to 72. Thanks to Gary Gregory. ggregory
Update Bump org.slf4j:slf4j-api from 2.0.13 to 2.0.16 #276, #282. Thanks to Gary Gregory, Dependabot. ggregory

Release 1.3.3 – 2024-06-30

Type Changes By
Fix Update Log4j 2 OSGi imports #268. Fixes LOGGING-193. Thanks to Philippe Marschall. ggregory
Fix Fix PMD UnnecessaryFullyQualifiedName in SimpleLog. Thanks to Gary Gregory. ggregory
Fix Fix NullPointerException in SimpleLog#write(Object) on null input. Thanks to Gary Gregory. ggregory
Fix Fix NullPointerException in SimpleLog#write(StringBuffer) on null input. Thanks to Gary Gregory. ggregory
Update Bump org.apache.commons:commons-parent from 69 to 71 #267. Thanks to Dependabot. ggregory

Release 1.3.2 – 2024-05-11

Type Changes By
Fix Add OSGi metadata to enable Service Loader Mediator #234. Fixes LOGGING-190. Thanks to Hannes Wellmann, Gary Gregory, Johan Compagner. ggregory
Fix Apache commons logging shows 1.4 as latest release instead of 1.3.1. Fixes LOGGING-191. Thanks to Hannes Wellmann, Gary Gregory, Johan Compagner. ggregory
Fix Deprecate org.apache.commons.logging.LogSource.jdk14IsAvailable. Thanks to Gary Gregory. ggregory
Update Bump org.apache.commons:commons-parent from 67 to 69 #240. Thanks to Dependabot. ggregory
Update Bump org.slf4j:slf4j-api from 2.0.12 to 2.0.13 #248. Thanks to Dependabot. ggregory

Release 1.3.1 – 2024-03-16

Type Changes By
Add Add Maven property project.build.outputTimestamp for build reproducibility. Thanks to Gary Gregory. ggregory
Fix Remove references to very old JDK and Commons Logging versions #201. Thanks to Elliotte Rusty Harold. ggregory
Fix Update from Logj 1 to the Log4j 2 API compatibility layer #231. Thanks to Gary Gregory, Piotr P. Karwasz. ggregory
Fix Allow Servlet 4 in OSGi environment #191. Thanks to Václav Haisman. ggregory
Fix Fix generics warnings #213. Thanks to Elliotte Rusty Harold. ggregory
Fix Fix Import-Package entry for org.slf4j #188. Fixes LOGGING-189. Thanks to Václav Haisman, Sebb, Hannes Wellmann, Gary Gregory, Piotr P. Karwasz. ggregory
Update Bump org.apache.commons:commons-parent from 65 to 67. Thanks to Dependabot. ggregory
Update Bump log4j2.version from 2.21.1 to 2.23.1 #187, #230. Thanks to Dependabot, Piotr P. Karwasz. ggregory
Update Bump org.slf4j:slf4j-api from 2.0.9 to 2.0.12 #207. Thanks to Dependabot. ggregory
Update Bump ch.qos.logback:logback-classic from 1.3.11 to 1.3.14 #212. Thanks to Dependabot, Gary Gregory. ggregory
Update Bump ch.qos.logback:logback-core from 1.3.11 to 1.3.14 #211. Thanks to Dependabot, Gary Gregory. ggregory
Update Bump com.h3xstream.findsecbugs:findsecbugs-plugin from 1.12.0 to 1.13.0. Thanks to Dependabot. ggregory
Update Bump logkit from 1.0.1 to 2.0 #32. Thanks to Dependabot. ggregory

Release 1.3.0 – 2023-11-26

Type Changes By
Add Add support for Log4j API and SLF4J #177. Thanks to Piotr P. Karwasz. ggregory
Add Deprecate org.apache.commons.logging.impl.WeakHashtable without replacement. Thanks to Piotr P. Karwasz. ggregory
Add Deprecate and disable `Jdk13LumberjackLogger` and `Log4JLogger`. Fixes LOGGING-188. Thanks to Piotr P. Karwasz. pkarwasz
Add Deprecate and disable `AvalonLogger` and `LogKitLogger`. Fixes LOGGING-173. Thanks to SingingBush. pkarwasz
Add Add Automatic-Module-Name Manifest Header for Java 9 compatibility. Fixes LOGGING-165. britter
Fix BufferedReader is not closed properly. Fixes LOGGING-163. Thanks to Kaloyan Spiridonov. ggregory
Fix Remove redundant initializer #46. Fixes LOGGING-177. Thanks to Arturo Bernal. ggregory
Fix Use a weak reference for the cached class loader #71. Thanks to Jakob van Kruijssen, Bruno P. Kinoshita, Gary Gregory. ggregory
Fix Add more entries to .gitignore file #25. Thanks to xiaozhiliaoo. ggregory
Fix Minor Improvements #34. Thanks to Arturo Bernal. ggregory
Fix [StepSecurity] ci: Harden GitHub Actions #145. Thanks to step-security-bot, Gary Gregory. ggregory
Fix Replace custom code with `ServiceLoader` call. Fixes LOGGING-185. Thanks to Piotr P. Karwasz. pkarwasz
Fix Fix possible NPEs in LogFactoryImpl. Thanks to Gary Gregory. ggregory
Fix Fix failing tests #180. Fixes LOGGING-185. Thanks to Piotr P. Karwasz. ggregory
Fix Deprecate LogConfigurationException.cause in favor of getCause(). Thanks to Gary Gregory. ggregory
Fix Fix SpotBugs [ERROR] High: Found reliance on default encoding in org.apache.commons.logging.LogFactory.initDiagnostics(): new java.io.PrintStream(OutputStream) [org.apache.commons.logging.LogFactory] At LogFactory.java:[line 1205] DM_DEFAULT_ENCODING. Thanks to Gary Gregory. ggregory
Fix Fix SpotBugs [ERROR] Medium: Class org.apache.commons.logging.impl.WeakHashtable defines non-transient non-serializable instance field queue [org.apache.commons.logging.impl.WeakHashtable] In WeakHashtable.java SE_BAD_FIELD. Thanks to Gary Gregory. ggregory
Fix Set java.logging as optional module #183. Thanks to Piotr P. Karwasz. ggregory
Fix Fix SpotBugs [ERROR] Medium: Switch statement found in org.apache.commons.logging.impl.SimpleLog.log(int, Object, Throwable) where default case is missing [org.apache.commons.logging.impl.SimpleLog] At SimpleLog.java:[lines 505-522] SF_SWITCH_NO_DEFAULT. Thanks to Gary Gregory. ggregory
Fix Deprecate org.apache.commons.logging.impl.Jdk13LumberjackLogger.dummyLevel without replacement. Thanks to Gary Gregory. ggregory
Update Bump Java from 6 to 8. Thanks to Gary Gregory. ggregory
Update Bump actions/cache from 2 to 3.0.10 #50, #77, #95, #98, #107, #110. Thanks to Dependabot, Gary Gregory. ggregory
Update Bump actions/checkout from 2.3.1 to 3.1.0, #24, #63, #75, #109. Thanks to Dependabot, Gary Gregory. ggregory
Update Bump actions/setup-java from 1.4.0 to 3.5.1 #21. Thanks to Dependabot, Gary Gregory. ggregory
Update Bump junit from 3.8.1 to 5.9.1 Vintage #23, #38. Thanks to Dependabot, Gary Gregory. ggregory
Update Bump clirr-maven-plugin from 2.2.2 to 2.8 #14. Thanks to Dependabot. ggregory
Update Bump findbugs-maven-plugin from 2.5.2 to 3.0.5 #8. Thanks to Dependabot. ggregory
Update Bump maven-failsafe-plugin from 2.12 to 3.0.0-M7 #31, #91. Thanks to Dependabot, Gary Gregory. ggregory
Update Bump spotbugs-surefire-plugin from 2.22.2 to 3.0.0-M5. Thanks to Gary Gregory. ggregory
Update Bump maven-dependency-plugin from 2.4 to 3.5.0 #29, #79, #117, #131. Thanks to Dependabot. ggregory
Update Bump maven-pmd-plugin from 3.3 to 3.19.0 #28, #90, #100, #103. Thanks to Dependabot. ggregory
Update Bump maven-assembly-plugin from 2.5 to 3.4.2 #30, #94, #96. Thanks to Dependabot. ggregory
Update Bump servlet-api from 2.3 to 2.5 #27. Thanks to Dependabot. ggregory
Update Bump maven-checkstyle-plugin from 2.7 to 3.2.1 #35, #101, #130. Thanks to Gary Gregory, Dependabot. ggregory
Update Bump spotbugs-maven-plugin from 4.1.4 to 4.7.2.1 #33, #70, #78, #93, #97, #102, #112. Thanks to Dependabot. ggregory
Update Bump spotbugs from 4.5.3 to 4.7.3 #81, #87, #92, #104, #115. Thanks to Dependabot. ggregory
Update Bump commons-parent from 52 to 65 #82, #106, #122, #126, #143. Thanks to Dependabot, Gary Gregory. kinow
Update Bump github/codeql-action from 1 to 2 #86. Thanks to Dependabot. kinow

Release 1.2 – 2014-07-11

Type Changes By
Fix Improve performance of LogFactory#getFactory() by calling Thread#currentThread()#getContextClassLoader() directly instead of using reflection. As a consequence support for JDK 1.1 has been dropped. Fixes LOGGING-37. Thanks to Matthias Ernst,Archie Cobbs. tn
Fix Fix SecurityAllowedTestCase when executed with OpenJDK 1.7 due to an additional required RuntimePermission. Fixes LOGGING-156. Thanks to Mikolaj Izdebski. tn
Fix Fix javadoc to comply with javadoc tool from jdk 1.8. Fixes LOGGING-157. Thanks to Ville Skyttä. tn

Release 1.1.3 – 2013-05-23

Type Changes By
Fix Use "org.apache.commons.logging" as bundle symbolic name. Fixes LOGGING-151. Thanks to Krzysztof Daniel. tn

Release 1.1.2 – 2013-03-20

Type Changes By
Fix The jar manifest now contains proper OSGi-related metadata information. Fixes LOGGING-124. Thanks to Christian Schneider. tn
Fix LogFactory and LogFactoryImpl will not swallow certain errors anymore (ThreadDeath and VirtualMachineError). Fixes LOGGING-144. Thanks to Sebastian Bazley. tn
Update Improved thread-safety for several log adapters, including AvalonLogger, SimpleLog, Log4JLogger, LogKitLogger. Fixes LOGGING-135. Thanks to Sebastian Bazley. tn
Update In case of a discovery failure now also the stacktrace of the cause will be added to the diagnostic message. Fixes LOGGING-138. Thanks to Luke Lu. tn
Fix Jdk14Logger now correctly uses the specified logger name. Fixes LOGGING-132. Thanks to Nathan Niesen. tn
Update Change scope of Jdk14Logger.log(Level, String, Throwable) to protected, allowing subclasses to modify the logging output. Fixes LOGGING-133. Thanks to Shevek. tn
Fix Properly synchronize access to protected static field LogFactory.nullClassLoaderFactory. Fixes LOGGING-146. Thanks to Sebastian Bazley. tn
Fix Prevent potential deadlock scenario in WeakHashtable. Fixes LOGGING-119. Thanks to Nitzan Niv, Philippe Mouawad. tn
Fix Potential missing privileged block for class loader. Fixes LOGGING-130. Thanks to Matthew P. Del Buono. sebb
Fix LogFactoryImpl.setAttribute - possible NPE. Fixes LOGGING-145. sebb
Fix Log4JLogger uses deprecated static members of Priority such as INFO. Fixes LOGGING-142. Thanks to Jingguo Yao. sebb
Fix Static analysis suggests a number of potential improvements. Fixes LOGGING-128. Thanks to Peter Lawrey. sebb
Fix SimpleLog.log - unsafe update of shortLogName. Fixes LOGGING-147. sebb
Fix LogFactory.diagnosticPrefix and diagnosticsStream could be final. Fixes LOGGING-148. sebb