You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2020/02/24 02:48:21 UTC

[logging-log4j2] branch release-2.x updated: Prepare for release

This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 2bbe539  Prepare for release
2bbe539 is described below

commit 2bbe5394f6c59a9eae72d522b68e53592f6fe971
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Sun Feb 23 19:48:09 2020 -0700

    Prepare for release
---
 RELEASE-NOTES.md            | 147 ++++++++++++++++++++++++--------------------
 pom.xml                     |   2 +-
 src/changes/announcement.vm |  15 +----
 src/changes/changes.xml     |   2 +-
 4 files changed, 84 insertions(+), 82 deletions(-)

diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index c13867b..8e8cf4c 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -14,9 +14,9 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 -->
-# Apache Log4j 2.13.0 Release Notes
+# Apache Log4j 2.13.1 Release Notes
 
-The Apache Log4j 2 team is pleased to announce the Log4j 2.13.0 release!
+The Apache Log4j 2 team is pleased to announce the Log4j 2.13.1 release!
 
 Apache Log4j is a well known framework for logging application behavior. Log4j 2 is an upgrade
 to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides
@@ -27,20 +27,7 @@ temporary objects) while logging. In addition, Log4j 2 will not lose events whil
 
 The artifacts may be downloaded from https://logging.apache.org/log4j/2.x/download.html.
 
-This release contains bugfixes and minor enhancements. Some of the new features in this release are:
-
-1. Log4j 2 now requires Java 8 or higher to build and run.
-1. Experimental support for Log4j 1 configuration files. See
-[Log4j 2 Compatiblity with Log4j 1](https://logging.apache.org/log4j/2.x//manual/compatiblity.html).
-1. The Logger API has been enhanced to support a builder pattern. This can dramatically improve the overhead of
-capturing location information. See [Log Builder](https://logging.apache.org/log4j/2.x//manual/logbuilder.html).
-1. Better integration with Spring Boot by providing access to Spring variables in Log4j 2 configuration files and
-allowing Log4j 2 system properties to be defined in the Spring configuration.
-See [Logging in the Cloud](manual/cloud.html#Managing_Logging_Configuration).
-1. Support for accessing Kubernetes information via a Log4j 2 Lookup.
-1. The Gelf Layout now allows the message to be formatted using a PatternLayout pattern.
-[Logging in the Cloud](https://logging.apache.org/log4j/2.x//manual/cloud.html#Log4j_Configuration) provides an example of this, as well
-as the use of the Spring and Kubernetes Lookups.
+This release contains bugfixes and very minor enhancements.
 
 Due to a break in compatibility in the SLF4J binding, Log4j now ships with two versions of the SLF4J to Log4j adapters.
 log4j-slf4j-impl should be used with SLF4J 1.7.x and earlier and log4j-slf4j18-impl should be used with SLF4J 1.8.x and
@@ -49,68 +36,96 @@ later.
 Note that the XML, JSON and YAML formats changed in the 2.11.0 release: they no longer have the "timeMillis" attribute
 and instead have an "Instant" element with "epochSecond" and "nanoOfSecond" attributes.
 
-The Log4j 2.13.0 API, as well as many core components, maintains binary compatibility with previous releases.
+The Log4j 2.13.1 API, as well as many core components, maintains binary compatibility with previous releases.
 
-## GA Release 2.13.0
+## GA Release 2.13.1
 
 Changes in this version include:
 
 ### New Features
-* [LOG4J2-2732](https://issues.apache.org/jira/browse/LOG4J2-2732):
-Add ThreadContext.putIfNotNull method. Thanks to Matt Pavlovich.
-* [LOG4J2-2731](https://issues.apache.org/jira/browse/LOG4J2-2731):
-Add a Level Patttern Selector.
-* [LOG4J2-63](https://issues.apache.org/jira/browse/LOG4J2-63):
-Add experimental support for Log4j 1 configuration files.
-* [LOG4J2-2716](https://issues.apache.org/jira/browse/LOG4J2-2716):
-Add the ability to lookup Kubernetes attributes in the Log4j configuration. Allow Log4j properties to
-        be retrieved from the Spring environment if it is available.
-* [LOG4J2-2710](https://issues.apache.org/jira/browse/LOG4J2-2710):
-Allow Spring Boot application properties to be accessed in the Log4j 2 configuration. Add
-        lower and upper case Lookups.
-* [LOG4J2-2639](https://issues.apache.org/jira/browse/LOG4J2-2639):
-Add builder pattern to Logger interface.
+* [LOG4J2-2748](https://issues.apache.org/jira/browse/LOG4J2-2748):
+Implement ISO8601_PERIOD_MICROS fixed date format matching ISO8601_PERIOD with support for microsecond precision.
 
 ### Fixed Bugs
-* [LOG4J2-2058](https://issues.apache.org/jira/browse/LOG4J2-2058):
-Prevent recursive calls to java.util.LogManager.getLogger().
-* [LOG4J2-2725](https://issues.apache.org/jira/browse/LOG4J2-2725):
-LOG4J2-2725 - Added try/finally around event.execute() for RingBufferLogEventHandler to clear memory
-        correctly in case of exception/error Thanks to Dzmitry Anikechanka.
-* [LOG4J2-2635](https://issues.apache.org/jira/browse/LOG4J2-2635):
-Wrong java version check in ThreadNameCachingStrategy. Thanks to Filipp Gunbin.
-* [LOG4J2-2674](https://issues.apache.org/jira/browse/LOG4J2-2674):
-Use a less confusing name for the CompositeConfiguration source. Thanks to Anton Korenkov.
-* [LOG4J2-2727](https://issues.apache.org/jira/browse/LOG4J2-2727):
-Add setKey method to Kafka Appender Builder. Thanks to Clément Mathieu.
-* [LOG4J2-2707](https://issues.apache.org/jira/browse/LOG4J2-2707):
-ArrayIndexOutOfBoundsException could occur with MAC address longer than 6 bytes. Thanks to Christian Frank.
-* [LOG4J2-2712](https://issues.apache.org/jira/browse/LOG4J2-2712):
-The rolling file appenders would fail to compress the file after rollover if the file name matched the
-        file pattern.
-* [LOG4J2-2693](https://issues.apache.org/jira/browse/LOG4J2-2693):
-@PluginValue does not support attribute names besides "value".
-* [LOG4J2-2647](https://issues.apache.org/jira/browse/LOG4J2-2647):
-Validation blocks definition of script in properties configuration.
-* [LOG4J2-2680](https://issues.apache.org/jira/browse/LOG4J2-2680):
-Set result of rename action to true if file was copied. Thanks to Guillermo Xavier Hurtado Garcia.
-* [LOG4J-2672](https://issues.apache.org/jira/browse/LOG4J-2672):
-Add automatic module names where missing. Thanks to Stephen Colebourne.
-* [LOG4J2-2673](https://issues.apache.org/jira/browse/LOG4J2-2673):
-OutputStreamAppender.Builder ignores setFilter(). Thanks to Yuichi Sugimura.
-* [LOG4J2-2725](https://issues.apache.org/jira/browse/LOG4J2-2725):
-Prevent a memory leak when async loggers throw errors. Thanks to Dzmitry Anikechanka.
+* [LOG4J2-2717](https://issues.apache.org/jira/browse/LOG4J2-2717):
+Slow initialization on Windows due to accessing network interfaces.
+* [LOG4J2-2756](https://issues.apache.org/jira/browse/LOG4J2-2756):
+Prevent LoggerContext from being garbage collected while being created.
+* [LOG4J2-2769](https://issues.apache.org/jira/browse/LOG4J2-2769):
+Do not log an error if Files.move does not work.
+* [LOG4J2-2039](https://issues.apache.org/jira/browse/LOG4J2-2039):
+Rollover fails when file matches pattern but index is too large.
+* [LOG4J2-2784](https://issues.apache.org/jira/browse/LOG4J2-2784):
+Counter stuck at 10 and overwriting files when leading zeros used in the file pattern count.
+* [LOG4J2-2746](https://issues.apache.org/jira/browse/LOG4J2-2746):
+ClassLoaderContextSelector was not locating the LoggerContext during shutdown.
+* [LOG4J2-2652](https://issues.apache.org/jira/browse/LOG4J2-2652):
+JSON output wrong when using additonal fields.
+* [LOG4J2-2649](https://issues.apache.org/jira/browse/LOG4J2-2649):
+GraalVM does not allow use of MethodHandles.
+* [LOG4J2-2211](https://issues.apache.org/jira/browse/LOG4J2-2211):
+Allow Lookup keys with leading dashes by using a slash as an escape character.
+* [LOG4J2-2781](https://issues.apache.org/jira/browse/LOG4J2-2781):
+ServletContainerInitializer was obtaining the StatusLogger too soon. Thanks to qxo.
+* [LOG4J2-2676](https://issues.apache.org/jira/browse/LOG4J2-2676):
+PluginProcessor should use Messager instead of System.out. Thanks to Gregg Donovan.
+* [LOG4J2-2703](https://issues.apache.org/jira/browse/LOG4J2-2703):
+MapMessage.getFormattedMesssage() would incorrectly format objects. Thanks to Volkan Yazici.
+* [LOG4J2-2760](https://issues.apache.org/jira/browse/LOG4J2-2760):
+Always write header on a new OutputStream. Thanks to Christoph Kaser.
+* [LOG4J2-2776](https://issues.apache.org/jira/browse/LOG4J2-2776):
+An error message in RollingFileAppender uses a placeholder for the name but does not specify the name
+        argument in the logging call Thanks to Christoph Kaser.
+* [LOG4J2-2758](https://issues.apache.org/jira/browse/LOG4J2-2758):
+NullPointerException when using a custom DirectFileRolloverStrategy without a file name. Thanks to Christoph Kaser.
+* [LOG4J2-2768](https://issues.apache.org/jira/browse/LOG4J2-2768):
+Add mulit-parameter overloads to LogBuilder. Thanks to Marius Volkhart.
+* [LOG4J2-2770](https://issues.apache.org/jira/browse/LOG4J2-2770):
+Fixed NullPointerException after reconfiguring via JMX. Thanks to Bill Kuker.
+* [LOG4J2-2759](https://issues.apache.org/jira/browse/LOG4J2-2759):
+RollingFileAppender was not rolling on startup if createOnDemand was set to true.
+* [LOG4J2-2767](https://issues.apache.org/jira/browse/LOG4J2-2767):
+Warn if pattern is missing on Routes element. Use default route.
+* [LOG4J2-2415](https://issues.apache.org/jira/browse/LOG4J2-2415):
+Fix lock contention in the classloader using new versions of slf4j without EventData on slf4j logger creation. Thanks to Andrey Turbanov.
+* [LOG4J2-2677](https://issues.apache.org/jira/browse/LOG4J2-2677):
+Rollover handles parallel file deletion gracefully.
+* [LOG4J2-2744](https://issues.apache.org/jira/browse/LOG4J2-2744):
+Remove unnecessary EventLogger references from log4j-slf4j18-impl due to removal from slf4j.
+* [LOG4J2-2747](https://issues.apache.org/jira/browse/LOG4J2-2747):
+Fix a memory leak using fully asynchronous logging when the queue is full using the 'discard' asynchronous queue full strategy.
+* [LOG4J2-2739](https://issues.apache.org/jira/browse/LOG4J2-2739):
+Fix erroneous log4j-jul recursive logger detection resulting in some no-op JUL loggers and 'WARN Recursive call to getLogger' being reported by the status logger.
+* [LOG4J2-2735](https://issues.apache.org/jira/browse/LOG4J2-2735):
+PluginCache output is reproducible allowing the annotation processor to produce deterministic results. Thanks to Andy Wilkinson.
+* [LOG4J2-2751](https://issues.apache.org/jira/browse/LOG4J2-2751):
+Fix StackLocator.getCallerClass performance in cases where Reflection.getCallerClass is not accessible.
+* [LOG4J2-2752](https://issues.apache.org/jira/browse/LOG4J2-2752):
+MutableLogEvent and RingBufferLogEvent avoid StringBuffer and parameter array allocation unless reusable messages are used.
+* [LOG4J2-2754](https://issues.apache.org/jira/browse/LOG4J2-2754):
+LoaderUtil.getClassLoaders may discover additional loaders and no longer erroneously returns a result with a null element in some environments.
+* [LOG4J2-2575](https://issues.apache.org/jira/browse/LOG4J2-2575):
+CronExpression.getBeforeTime() would sometimes return incorrect result. Thanks to Nathan Friess.
+* [LOG4J2-2762](https://issues.apache.org/jira/browse/LOG4J2-2762):
+[JDBC] MS-SQL Server JDBC driver throws SQLServerException when inserting a null value for a VARBINARY column.
+* [LOG4J2-2770](https://issues.apache.org/jira/browse/LOG4J2-2770):
+NullPointerException after reconfiguring via JMX. Thanks to Bill Kuker.
 
 ### Changes
-* [LOG4J2-2701](https://issues.apache.org/jira/browse/LOG4J2-2701):
-Update Jackson to 2.9.10.
-* [LOG4J2-2709](https://issues.apache.org/jira/browse/LOG4J2-2709):
-Allow message portion of GELF layout to be formatted using a PatternLayout. Allow
-        ThreadContext attributes to be explicitly included or excluded in the GelfLayout.
+* [LOG4J2-2789](https://issues.apache.org/jira/browse/LOG4J2-2789):
+Conditionally perform status logging calculations in PluginRegistry. Thanks to Marius Volkhart.
+* [LOG4J2-2782](https://issues.apache.org/jira/browse/LOG4J2-2782):
+Use LinkedBlockingQueue instead of synchronized collction in StatusConfiguration.
+* [LOG4J2-2777](https://issues.apache.org/jira/browse/LOG4J2-2777):
+Add a retry count attribute to the KafkaAppender. Thanks to joongs4.
+* [LOG4J2-2745](https://issues.apache.org/jira/browse/LOG4J2-2745):
+Update log4j-slf4j18-impl slf4j version to 1.8.0-beta4 from 1.8.0-alpha2.
+* [LOG4J2-2763](https://issues.apache.org/jira/browse/LOG4J2-2763):
+Update dependencies.
 
 ---
 
-Apache Log4j 2.13.0 requires a minimum of Java 8 to build and run. Log4j 2.3 was the
+Apache Log4j 2.13.1 requires a minimum of Java 8 to build and run. Log4j 2.3 was the
 last release that supported Java 6 and Log4j 2.11.2 is the last release to support Java 7.
 
 For complete information on Apache Log4j 2, including instructions on how to submit bug
diff --git a/pom.xml b/pom.xml
index ef208f2..1fcd4a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -181,7 +181,7 @@
   <properties>
     <!-- make sure to update these for each release! -->
     <log4jParentDir>${basedir}</log4jParentDir>
-    <Log4jReleaseVersion>2.13.0</Log4jReleaseVersion>
+    <Log4jReleaseVersion>2.13.1</Log4jReleaseVersion>
     <Log4jReleaseManager>Ralph Goers</Log4jReleaseManager>
     <Log4jReleaseKey>B3D8E1BA</Log4jReleaseKey>
     <!--<Log4jReleaseManager>Matt Sicker</Log4jReleaseManager> -->
diff --git a/src/changes/announcement.vm b/src/changes/announcement.vm
index 088ecf4..c5f5015 100644
--- a/src/changes/announcement.vm
+++ b/src/changes/announcement.vm
@@ -65,20 +65,7 @@ temporary objects) while logging. In addition, Log4j 2 will not lose events whil
 
 The artifacts may be downloaded from https://logging.apache.org/log4j/2.x/download.html.
 
-This release contains bugfixes and minor enhancements. Some of the new features in this release are:
-
-1. Log4j 2 now requires Java 8 or higher to build and run.
-1. Experimental support for Log4j 1 configuration files. See
-[Log4j 2 Compatiblity with Log4j 1](${project.url}/manual/compatiblity.html).
-1. The Logger API has been enhanced to support a builder pattern. This can dramatically improve the overhead of
-capturing location information. See [Log Builder](${project.url}/manual/logbuilder.html).
-1. Better integration with Spring Boot by providing access to Spring variables in Log4j 2 configuration files and
-allowing Log4j 2 system properties to be defined in the Spring configuration.
-See [Logging in the Cloud](manual/cloud.html#Managing_Logging_Configuration).
-1. Support for accessing Kubernetes information via a Log4j 2 Lookup.
-1. The Gelf Layout now allows the message to be formatted using a PatternLayout pattern.
-[Logging in the Cloud](${project.url}/manual/cloud.html#Log4j_Configuration) provides an example of this, as well
-as the use of the Spring and Kubernetes Lookups.
+This release contains bugfixes and very minor enhancements.
 
 Due to a break in compatibility in the SLF4J binding, Log4j now ships with two versions of the SLF4J to Log4j adapters.
 log4j-slf4j-impl should be used with SLF4J 1.7.x and earlier and log4j-slf4j18-impl should be used with SLF4J 1.8.x and
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 2c21f44..ad4cfa3 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -29,7 +29,7 @@
          - "update" - Change
          - "remove" - Removed
     -->
-    <release version="2.13.1" date="2019-MM-DD" description="GA Release 2.13.1">
+    <release version="2.13.1" date="2019-02-23" description="GA Release 2.13.1">
       <action issue="LOG4J2-2717" dev="rgoers" type="fix">
         Slow initialization on Windows due to accessing network interfaces.
       </action>