Skip to content

Commit e443b03

Browse files
committed
Prepare for release.
1 parent 33d2b91 commit e443b03

File tree

34 files changed

+160
-22
lines changed

34 files changed

+160
-22
lines changed

RELEASE-NOTES.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!---
2+
Licensed to the Apache Software Foundation (ASF) under one or more
3+
contributor license agreements. See the NOTICE file distributed with
4+
this work for additional information regarding copyright ownership.
5+
The ASF licenses this file to You under the Apache License, Version 2.0
6+
(the "License"); you may not use this file except in compliance with
7+
the License. You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
18+
# Release 2.20.0 (2023-02-17)
19+
20+
This release primarily contains bug fixes and minor enhancements.
21+
22+
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 later. SLF4J-2.0.0 alpha releases are not fully supported. See [LOG4J2-2975](https://issues.apache.org/jira/browse/LOG4J2-2975) and [SLF4J-511](https://jira.qos.ch/browse/SLF4J-511).
23+
24+
The Log4j 2.19.0 API, as well as many core components, maintains binary compatibility with previous releases.
25+
26+
Apache Log4j 2.19.0 requires a minimum of Java 8 to build and run. Log4j 2.12.4 is the last release to support Java 7. Log4j 2.3.2 is the last release to support Java 6. Java 6 and Java 7 are no longer supported by the Log4j team.
27+
28+
For complete information on Apache Log4j 2, including instructions on how to submit bug reports, patches, or suggestions for improvement, see [the Apache Log4j 2 website](http://logging.apache.org/log4j/2.x/).
29+
30+
## Changes
31+
32+
### Added
33+
* Add support for timezones in `RollingFileAppender` date pattern (for [LOG4J2-1631](https://issues.apache.org/jira/browse/LOG4J2-1631) by Piotr P. Karwasz, Danas Mikelinskas)
34+
* Add `LogEvent` timestamp to `ProducerRecord` in `KafkaAppender` (for [LOG4J2-2678](https://issues.apache.org/jira/browse/LOG4J2-2678) by Piotr P. Karwasz, Federico D’Ambrosio)
35+
* Add `PatternLayout` support for abbreviating the name of all logger components except the 2 rightmost (for [LOG4J2-2785](https://issues.apache.org/jira/browse/LOG4J2-2785) by Ralph Goers, Markus Spann)
36+
* Removes internal field that leaked into public API. (for [LOG4J2-3615](https://issues.apache.org/jira/browse/LOG4J2-3615) by Piotr P. Karwasz)
37+
* Add a `LogBuilder#logAndGet()` method to emulate the `Logger#traceEntry` method. (for [LOG4J2-3645](https://issues.apache.org/jira/browse/LOG4J2-3645) by Piotr P. Karwasz)
38+
39+
### Changed
40+
* Simplify site generation (for [1166](https://github.com/apache/logging-log4j2/pull/1166) by Volkan Yazıcı
41+
* Switch the issue tracker from [JIRA](https://issues.apache.org/jira/browse/LOG4J2) to [GitHub Issues](https://github.com/apache/logging-log4j2/issues) (for [1172](https://github.com/apache/logging-log4j2/pull/1172) by Volkan Yazıcı)
42+
* Remove liquibase-log4j2 maven module (for [1193](https://github.com/apache/logging-log4j2/pull/1193) by StevenMassaro)
43+
* Fix order of stacktrace elements, that causes cache misses in `ThrowableProxyHelper`. (for [1214](https://github.com/apache/logging-log4j2/pull/1214) by `alex-dubrouski`, Piotr P. Karwasz)
44+
* Switch from `com.sun.mail` to Eclipse Angus. (for [LOG4J2-3554](https://issues.apache.org/jira/browse/LOG4J2-3554) by Oleh Astappiev, Piotr P. Karwasz)
45+
* Add Log4j2 Core as default runtime dependency of the SLF4J2-to-Log4j2 API bridge. (for [LOG4J2-3601](https://issues.apache.org/jira/browse/LOG4J2-3601) by `afs`, Piotr P. Karwasz)
46+
* Replace `maven-changes-plugin` with a custom changelog implementation (for [LOG4J2-3628](https://issues.apache.org/jira/browse/LOG4J2-3628) by Volkan Yazıcı)
47+
48+
### Deprecated
49+
* Deprecate support for package scanning for plugins (for [LOG4J2-3644](https://issues.apache.org/jira/browse/LOG4J2-3644) by Ralph Goers)
50+
51+
### Fixed
52+
* Copy programmatically supplied location even if `includeLocation="false"`. (for [1197](https://github.com/apache/logging-log4j2/pull/1197) by Piotr P. Karwasz)
53+
* Eliminate status logger warning, when `disableAnsi` or `noConsoleNoAnsi` is used the style and highlight patterns. (for [1202](https://github.com/apache/logging-log4j2/pull/1202) by `wleese`, Piotr P. Karwasz)
54+
* Fix detection of location requirements in `RewriteAppender`. (for [1274](https://github.com/apache/logging-log4j2/pull/1274) by `amirhadadi`, Piotr P. Karwasz)
55+
* Replace regex with manual code to escape characters in Rfc5424Layout. (for [1277](https://github.com/apache/logging-log4j2/pull/1277) by `adwsingh`)
56+
* Fix `java.sql.Time` object formatting in `MapMessage` (for [LOG4J2-2297](https://issues.apache.org/jira/browse/LOG4J2-2297) by Ralph Goers)
57+
* Fix previous fire time computation in `CronTriggeringPolicy` (for [LOG4J2-3357](https://issues.apache.org/jira/browse/LOG4J2-3357) by Ralph Goers)
58+
* Correct default to not include location for `AsyncRootLogger`s (for [LOG4J2-3487](https://issues.apache.org/jira/browse/LOG4J2-3487) by Ralph Goers, Dave Messink)
59+
* Lazily evaluate the level of a SLF4J `LogEventBuilder` (for [LOG4J2-3598](https://issues.apache.org/jira/browse/LOG4J2-3598) by Piotr P. Karwasz)
60+
* Fixes priority of Legacy system properties, which are now back to having higher priority than Environment variables. (for [LOG4J2-3615](https://issues.apache.org/jira/browse/LOG4J2-3621) by `adwsingh`, Piotr P. Karwasz)
61+
* Protects `ServiceLoaderUtil` from unchecked `ServiceLoader` exceptions. (for [LOG4J2-3624](https://issues.apache.org/jira/browse/LOG4J2-3624) by Piotr P. Karwasz)
62+
* Fix `Configurator#setLevel` for internal classes (for [LOG4J2-3631](https://issues.apache.org/jira/browse/LOG4J2-3631) by Piotr P. Karwasz, Jeff Thomas)
63+
* Fix level propagation in `Log4jBridgeHandler` (for [LOG4J2-3634](https://issues.apache.org/jira/browse/LOG4J2-3634) by Piotr P. Karwasz, Marcel Koch)
64+
* Disable `OsgiServiceLocator` if not running in OSGI container. (for [LOG4J2-3642](https://issues.apache.org/jira/browse/LOG4J2-3642) by `adwsingh`, Piotr P. Karwasz)
65+
* When using a Date Lookup in the file pattern the current time should be used. (for [LOG4J2-3643](https://issues.apache.org/jira/browse/LOG4J2-3643) by Ralph Goers)
66+
* Fixed `LogBuilder` filtering in the presence of global filters. (for [LOG4J2-3647](https://issues.apache.org/jira/browse/LOG4J2-3647) by Piotr P. Karwasz)
67+
68+
* * *
69+
70+
Copyright © 1999-2023 [The Apache Software Foundation](https://www.apache.org). All Rights Reserved.
71+
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.

log4j-distribution/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<maven.deploy.skip>true</maven.deploy.skip>
3131
<maven.install.skip>true</maven.install.skip>
3232
<maven.test.skip>true</maven.test.skip>
33+
<spotless.check.skip>true</spotless.check.skip>
3334
</properties>
3435
<dependencies>
3536
<dependency>
@@ -284,12 +285,24 @@
284285
<groupId>org.apache.logging.log4j</groupId>
285286
<artifactId>log4j-slf4j2-impl</artifactId>
286287
<version>${project.version}</version>
288+
<exclusions>
289+
<exclusion>
290+
<groupId>org.slf4j</groupId>
291+
<artifactId>slf4j-api</artifactId>
292+
</exclusion>
293+
</exclusions>
287294
</dependency>
288295
<dependency>
289296
<groupId>org.apache.logging.log4j</groupId>
290297
<artifactId>log4j-slf4j2-impl</artifactId>
291298
<version>${project.version}</version>
292299
<classifier>sources</classifier>
300+
<exclusions>
301+
<exclusion>
302+
<groupId>org.slf4j</groupId>
303+
<artifactId>slf4j-api</artifactId>
304+
</exclusion>
305+
</exclusions>
293306
</dependency>
294307
<dependency>
295308
<groupId>org.apache.logging.log4j</groupId>
@@ -317,12 +330,24 @@
317330
<groupId>org.apache.logging.log4j</groupId>
318331
<artifactId>log4j-spring-cloud-config-client</artifactId>
319332
<version>${project.version}</version>
333+
<exclusions>
334+
<exclusion>
335+
<groupId>org.springframework.cloud</groupId>
336+
<artifactId>spring-cloud-starter</artifactId>
337+
</exclusion>
338+
</exclusions>
320339
</dependency>
321340
<dependency>
322341
<groupId>org.apache.logging.log4j</groupId>
323342
<artifactId>log4j-spring-cloud-config-client</artifactId>
324343
<version>${project.version}</version>
325344
<classifier>sources</classifier>
345+
<exclusions>
346+
<exclusion>
347+
<groupId>org.springframework.cloud</groupId>
348+
<artifactId>spring-cloud-starter</artifactId>
349+
</exclusion>
350+
</exclusions>
326351
</dependency>
327352
<dependency>
328353
<groupId>org.apache.logging.log4j</groupId>

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@
344344
<hamcrest.version>2.2</hamcrest.version>
345345
<HdrHistogram.version>2.1.12</HdrHistogram.version>
346346
<hsqldb.version>2.5.2</hsqldb.version>
347+
<httpclient.version>4.5.13</httpclient.version>
347348
<icu4j.version>72.1</icu4j.version>
348349
<jackson-bom.version>2.14.1</jackson-bom.version>
349350
<!-- Override the version in Jakarta EE 9 BOM: -->
@@ -596,6 +597,12 @@
596597
<version>${commons-pool2.version}</version>
597598
</dependency>
598599

600+
<dependency>
601+
<groupId>org.apache.httpcomponents</groupId>
602+
<artifactId>httpclient</artifactId>
603+
<version>${httpclient.version}</version>
604+
</dependency>
605+
599606
<dependency>
600607
<groupId>de.flapdoodle.embed</groupId>
601608
<artifactId>de.flapdoodle.embed.mongo</artifactId>

src/changelog/.2.x.x/.changelog.adoc.ftl

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
////
2+
Licensed to the Apache Software Foundation (ASF) under one or more
3+
contributor license agreements. See the NOTICE file distributed with
4+
this work for additional information regarding copyright ownership.
5+
The ASF licenses this file to You under the Apache License, Version 2.0
6+
(the "License"); you may not use this file except in compliance with
7+
the License. You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
////
17+
18+
= ${release.version}<#if release.date?has_content> (${release.date})</#if>
19+
20+
This release primarily contains bug fixes and minor enhancements.
21+
22+
Due to a break in compatibility in the SLF4J binding, Log4j now ships with two versions of the SLF4J to Log4j adapters.
23+
`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.
24+
SLF4J-2.0.0 alpha releases are not fully supported.
25+
See https://issues.apache.org/jira/browse/LOG4J2-2975[LOG4J2-2975] and https://jira.qos.ch/browse/SLF4J-511[SLF4J-511].
26+
27+
The Log4j 2.19.0 API, as well as many core components, maintains binary compatibility with previous releases.
28+
29+
Apache Log4j 2.19.0 requires a minimum of Java 8 to build and run.
30+
Log4j 2.12.4 is the last release to support Java 7.
31+
Log4j 2.3.2 is the last release to support Java 6.
32+
Java 6 and Java 7 are no longer supported by the Log4j team.
33+
34+
For complete information on Apache Log4j 2, including instructions on how to submit bug reports, patches, or suggestions for improvement, see http://logging.apache.org/log4j/2.x/[the Apache Log4j 2 website].
35+
36+
<#include "../.changelog-entries.adoc.ftl">

src/changelog/2.20.0/.release.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
https://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
<release xmlns="http://logging.apache.org/log4j/changelog"
19+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.0.xsd"
21+
date="2023-02-17" version="2.20.0"/>

0 commit comments

Comments
 (0)