This release primarily focuses on enhancements to our OSGi and JPMS support and contains several bug fixes.
It will be the first release built and signed by the CI using the ASF Logging Services Release Manager GPG key,
which is shared in KEYS.
The Log4j 2.21.0 API, as well as the other artifacts, maintains binary compatibility with the previous release.
Apache Log4j 2.21.0 requires Java 8 to run.
The build requires JDK 11 and generates reproducible binaries.
For complete information on Apache Log4j 2, including instructions on how to submit bug reports, patches, get support, or suggestions for improvement, see the Apache Log4j 2 website.
OSGi changes
All the published artifacts are OSGi bundles or fragments.
This release introduces a change in the bundle symbolic names to allow them to function as JPMS module name: all hyphens - present in the bundle names of previous releases were replaced by dots ..
JPMS changes
All the published artifacts have been migrated from automatic modules to named JPMS modules.
All packages marked as private in the Javadoc are not exported.
The module name of four bridges (log4j-slf4j-impl, log4j-slf4j2-impl, log4j-to-jul and log4j-to-slf4j) have been changed to adhere to the same convention as the OSGi bundle names.
Added
Added marker parent support to JsonTemplateLayout (#1381)
Added a warning for incorrect syntax of highlighting styles (#1545, #1637)
Changed
Open FileExtension methods to allow their usage in custom RolloverStrategys (#1365, #1683)
Bumped the minimum Java version required for the build to JDK 11. Runtime requirements remain unchanged. (#1369)
Set the default minLevel and maxLevel of LevelRangeFilter to OFF and ALL, respectively (#1503)
Removed additional isFiltered checks in AsyncLoggerConfig (#1550)
Use Java version-specific warnings in StackLocator (#1760)
Started logging a status error event instead of an NPE in OsgiServiceLocator.loadServices(Class, Lookup, boolean) when a bundle has no valid BundleContext for a service type
Implemented a CI-based release process
Update Eclipse Angus Activation to version 2.0.1 (#1591)
Update Eclipse Angus Mail to version 2.0.2 (#1591)
Update com.datastax.cassandra:cassandra-driver-core to version 3.11.5 (#1591)
Update Apache Cassandra to version 3.11.16 (#1591)
Update Apache Commons Compress to version 1.24.0 (#1591)
Update Apache Commons CSV to version 1.10.0 (#1591)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps org.apache.logging.log4j:log4j-bom from 2.19.0 to 2.21.0.
Release notes
Sourced from org.apache.logging.log4j:log4j-bom's releases.
... (truncated)
Commits
3333493
added linebreak2b8a27f
Release changelog for version2.21.0
37ba9d8
Set version to2.21.0
1455d93
removed line break8deb5bf
added linebreakc2d70af
added linebreaksb687c5b
Fixjava-version
fordependabot
workflowcc69437
Tidy up JTL POMs47c85c6
Update Jetty version to9.4.53.v20231009
5ba866d
Try to stabilize certain tests with@RetryingTest
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show