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 2019/08/04 19:32:56 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 429b25d  Prepare for release
429b25d is described below

commit 429b25df3cf2e36dc2dd8f634736ad29f5e5bf5b
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Sun Aug 4 12:32:44 2019 -0700

    Prepare for release
---
 RELEASE-NOTES.md                                   | 114 ++++++---------------
 .../rolling/action/AbstractActionTest.java         |  16 +++
 pom.xml                                            |   2 +-
 src/changes/announcement.vm                        |  10 +-
 src/changes/changes.xml                            |   2 +-
 5 files changed, 50 insertions(+), 94 deletions(-)

diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index 020a241..1d860fc 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.12.0 Release Notes
+# Apache Log4j 2.12.1 Release Notes
 
-The Apache Log4j 2 team is pleased to announce the Log4j 2.12.0 release!
+The Apache Log4j 2 team is pleased to announce the Log4j 2.12.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
@@ -33,104 +33,48 @@ Due to a break in compatibility in the SLF4J binding, Log4j now ships with two v
 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
 later.
 
-New features include support for reconnfiguration of Log4j configuraton files accessed via HTTP(s) and Spring Cloud
-Config specifically,  a new Docker Lookup for obtaining information about the current Docker container, new
-reconfiguration methods added to the Configurator class, the
-ability to pad integers with leading zeros in filenames generated by the rolling file appenders, and allowing the TCP
-SocketAppender to connect to mulitple ip addresses when they are returned from DNS.
-
-More details on the new features and fixes are itemized below.
+This release improves the performance of capturing location information, makes log4j-core optional in the log4j 1.2
+bridge, and explicitly removes LoggerContext references from compoents that keep track of them when the LoggerContext
+is shut down. More details on the new features and fixes are itemized below.
 
 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.12.0 API, as well as many core components, maintains binary compatibility with previous releases.
+The Log4j 2.12.1 API, as well as many core components, maintains binary compatibility with previous releases.
 
-## GA Release 2.12.0
+## GA Release 2.12.1
 
 Changes in this version include:
 
-### New Features
-* [LOG4J2-2403](https://issues.apache.org/jira/browse/LOG4J2-2403):
-Allow zero padding the counter of a RollingFileAppender. Thanks to hupfdule.
-* [LOG4J2-2427](https://issues.apache.org/jira/browse/LOG4J2-2427):
-Add filter that will match events when no marker is present. Thanks to Rimaljit Kaur.
-* [LOG4J2-2406](https://issues.apache.org/jira/browse/LOG4J2-2406):
-Add reconfiguration methods to Configurator.
-* [LOG4J2-913](https://issues.apache.org/jira/browse/LOG4J2-913):
-Add support for reconfiguration via HTTP(S), Docker, and Spring Cloud Configuration.
-* [LOG4J2-2586](https://issues.apache.org/jira/browse/LOG4J2-2586):
-TCP Appender should support a host name resolving to multiple IP addresses.
-* [LOG4J2-2337](https://issues.apache.org/jira/browse/LOG4J2-2337):
-Allow custom end-of-line with JsonLayout. Thanks to Arvind Sahare, Patrice Ferrot.
-* [LOG4J2-2598](https://issues.apache.org/jira/browse/LOG4J2-2598):
-GZIP compression on rollover supports configurable compression levels. Thanks to Carter Kozak.
-* [LOG4J2-2611](https://issues.apache.org/jira/browse/LOG4J2-2611):
-AsyncQueueFullPolicy configuration short values "Default" and "Discard" are case insensitive to avoid confusion.
-* [LOG4J2-2634](https://issues.apache.org/jira/browse/LOG4J2-2634):
-Add and use method org.apache.logging.log4j.message.MapMessage.toKey(String) for simpler subclasses.
 
 ### Fixed Bugs
-* [LOG4J2-2547](https://issues.apache.org/jira/browse/LOG4J2-2547):
-RollingRandomAccessFileAppender error message referenced incorrect class name.
-* [LOG4J2-2616](https://issues.apache.org/jira/browse/LOG4J2-2616):
-Restore constructor to ThrowablePatternConverter that was removed in 2.8.2.
-* [LOG4J2-2622](https://issues.apache.org/jira/browse/LOG4J2-2622):
-StructuredDataId was ignoring maxLength atribute.
-* [LOG4J2-2636](https://issues.apache.org/jira/browse/LOG4J2-2636):
-RFC5424Layout was not properly setting default Structured Element id for the MDC
-* [LOG4J2-1143](https://issues.apache.org/jira/browse/LOG4J2-1143):
-Lookups were not found if the plugin key was not lowercase. Thanks to Pascal Heinrich.
-* [LOG4J2-1852](https://issues.apache.org/jira/browse/LOG4J2-1852):
-Locate plugins within a Jar using a URL Connection. Thanks to Tanner Altares.
-* [LOG4J2-2610](https://issues.apache.org/jira/browse/LOG4J2-2610):
-Explicitly set file creation time.
-* [LOG4J2-2561](https://issues.apache.org/jira/browse/LOG4J2-2561):
-JEP223 version detection fix for JDK 9 and up. Thanks to Ulrich Enslin.
-* [LOG4J2-1103](https://issues.apache.org/jira/browse/LOG4J2-1103):
-FailoverAppender was failing with ERROR appender Failover has no parameter that matches element Failovers. Thanks to Seán Dunne.
-* [LOG4J2-2602](https://issues.apache.org/jira/browse/LOG4J2-2602):
-Update file time when size based triggering policy is used without a time-based triggering policy.
-* [LOG4J2-2597](https://issues.apache.org/jira/browse/LOG4J2-2597):
-Throw better exception message when both log4j-slf4j-impl and log4j-to-slf4j are present.
-* [LOG4J2-2559](https://issues.apache.org/jira/browse/LOG4J2-2559):
-NullPointerException in JdbcAppender.createAppender(). Thanks to Li Lei, Gary Gregory.
-* [LOG4J2-2592](https://issues.apache.org/jira/browse/LOG4J2-2592):
-StackOverflowException when server not reachable with SocketAppender. Thanks to Dávid Kaya, Gary Gregory.
-* [LOG4J2-2598](https://issues.apache.org/jira/browse/LOG4J2-2598):
-java.lang.StackOverflowError at org.apache.logging.log4j.junit.AbstractExternalFileCleaner.println(AbstractExternalFileCleaner.java:169). Thanks to Gary Gregory.
-* [LOG4J2-2564](https://issues.apache.org/jira/browse/LOG4J2-2564):
-MapPatternConverter is properly created from the '%K', '%map', and '%MAP' patterns.
-        PatternConverter instanceOf methods with unknown parameter types no longer elide those with known parameters.
-* [LOG4J2-2612](https://issues.apache.org/jira/browse/LOG4J2-2612):
-NullPointerException at org.apache.logging.log4j.core.appender.db.jdbc.JdbcDatabaseManager.writeInternal(JdbcDatabaseManager.java:803).
-* [LOG4J2-2618](https://issues.apache.org/jira/browse/LOG4J2-2618):
-Possible ClassCastException in org.apache.logging.log4j.core.script.ScriptManager.ScriptManager(Configuration, WatchManager)
-* [LOG4J2-2631](https://issues.apache.org/jira/browse/LOG4J2-2631):
-RoutingAppender PurgePolicy implementations no longer stop appenders referenced from the logger configuration,
-        only those that have been created by the RoutingAppender. Note that RoutingAppender.getAppenders no longer
-        includes entries for referenced appenders, only those which it has created.
-* [LOG4J2-2629](https://issues.apache.org/jira/browse/LOG4J2-2629):
-Fix a race allowing events not to be recorded when a RoutingAppender purge policy attempts to delete an idle
-        appender at exactly the same time as a new event is recorded.
-* [LOG4J2-2606](https://issues.apache.org/jira/browse/LOG4J2-2606):
-Asynchronous logging when the queue is full no longer results in heavy CPU utilization and low throughput.
+* [LOG4J2-1946](https://issues.apache.org/jira/browse/LOG4J2-1946):
+Allow file renames to work when files are missing from the sequence. Thanks to Igor Perelyotov.
+* [LOG4J2-2650](https://issues.apache.org/jira/browse/LOG4J2-2650):
+Support emulating a MAC address when using ipv6. Thanks to Mattia Bertorello.
+* [LOG4J2-2366](https://issues.apache.org/jira/browse/LOG4J2-2366):
+Remove references to LoggerContext when it is shutdown.
+* [LOG4J2-2644](https://issues.apache.org/jira/browse/LOG4J2-2644):
+Improve the performance of capturing location information.
+* [LOG4J2-2658](https://issues.apache.org/jira/browse/LOG4J2-2658):
+AbstractAction.reportException records a warning to the status logger, providing more information when file
+        based appenders fail to compress rolled data asynchronously.
+* [LOG4J2-2659](https://issues.apache.org/jira/browse/LOG4J2-2659):
+AbstractAction handles and records unchecked RuntimeException and Error in addition to IOException.
 
 ### Changes
-* [](https://issues.apache.org/jira/browse/LOG4J2-2606):
-Update tests from H2 1.4.197 to 1.4.199. Thanks to Gary Gregory.
-* [LOG4J2-2570](https://issues.apache.org/jira/browse/LOG4J2-2570):
-Update Jackson from 2.9.7 to 2.9.8. Thanks to Gary Gregory.
-* [LOG4J2-2574](https://issues.apache.org/jira/browse/LOG4J2-2574):
-Update MongoDB 3 module driver from 3.9.0 to 3.10.1. Thanks to Gary Gregory.
-* [LOG4J2-2619](https://issues.apache.org/jira/browse/LOG4J2-2619):
-Update Jackson from 2.9.8 to 2.9.9.
-* [LOG4J2-2634](https://issues.apache.org/jira/browse/LOG4J2-2634):
-Refactor several AsyncLogger methods below the 35 byte threshold for inlining.
+* [LOG4J2-2556](https://issues.apache.org/jira/browse/LOG4J2-2556):
+Make Log4j Core optional for Log4j 1.2 API.
+* [LOG4J2-2646](https://issues.apache.org/jira/browse/LOG4J2-2646):
+Update MongoDB 3 driver from 3.10.1 to 3.10.2.
+* [LOG4J2-2657](https://issues.apache.org/jira/browse/LOG4J2-2657):
+Improve exception messages in the JDBC appender.
+* [LOG4J2-2660](https://issues.apache.org/jira/browse/LOG4J2-2660):
+Retry when JDBC throws a java.sql.SQLTransactionRollbackException in commitAndClose().
 
 ---
 
-Apache Log4j 2.12.0 requires a minimum of Java 7 to build and run. Log4j 2.3 was the
+Apache Log4j 2.12.1 requires a minimum of Java 7 to build and run. Log4j 2.3 was the
 last release that supported Java 6.
 
 Basic compatibility with Log4j 1.x is provided through the log4j-1.2-api component, however it
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractActionTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractActionTest.java
index 6a70448..17333d3 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractActionTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractActionTest.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the license for the specific language governing permissions and
+ * limitations under the license.
+ */
 package org.apache.logging.log4j.core.appender.rolling.action;
 
 import org.apache.logging.log4j.Level;
diff --git a/pom.xml b/pom.xml
index 7c27e7c..2713798 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.12.0</Log4jReleaseVersion>
+    <Log4jReleaseVersion>2.12.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 b7bfaf9..0b25be5 100644
--- a/src/changes/announcement.vm
+++ b/src/changes/announcement.vm
@@ -71,13 +71,9 @@ Due to a break in compatibility in the SLF4J binding, Log4j now ships with two v
 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
 later.
 
-New features include support for reconnfiguration of Log4j configuraton files accessed via HTTP(s) and Spring Cloud
-Config specifically,  a new Docker Lookup for obtaining information about the current Docker container, new
-reconfiguration methods added to the Configurator class, the
-ability to pad integers with leading zeros in filenames generated by the rolling file appenders, and allowing the TCP
-SocketAppender to connect to mulitple ip addresses when they are returned from DNS.
-
-More details on the new features and fixes are itemized below.
+This release improves the performance of capturing location information, makes log4j-core optional in the log4j 1.2
+bridge, and explicitly removes LoggerContext references from compoents that keep track of them when the LoggerContext
+is shut down. More details on the new features and fixes are itemized below.
 
 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.
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 7274296..41d45a2 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -29,7 +29,7 @@
          - "update" - Change
          - "remove" - Removed
     -->
-    <release version="2.12.1" date="2019-MM-DD" description="GA Release 2.12.1">
+    <release version="2.12.1" date="2019-08-04" description="GA Release 2.12.1">
       <action issue="LOG4J2-1946" dev="rgoers" type="fix" due-to="Igor Perelyotov">
         Allow file renames to work when files are missing from the sequence.
       </action>