logging-log4j2 2.26.0
logging-log4j2 rel/2.26.0
This minor release delivers all the fixes in the [2.25.0, 2.25.4] version range, plus some new fixes, and several other improvements and features.
Added
- Add a new
ConfigurationFactory::getConfigurationmethod accepting multipleURIs (#3775, #3921) - Add and export
org.apache.logging.log4j.core.pattern.NamedInstantPatternenabling users to programmatically access named date & time patterns supported by Pattern Layout (#3789) - Add
log4j.plugin.processor.minAllowedMessageKindannotation processor option toPluginProcessorto filter diagnostic messages by severity. This allows builds that treat compiler notes as errors (e.g. Maven with-Werror) to suppress informational notes emitted during normal plugin processing. (https://github.com/apache/logging-log4j2/discussions/3380[#3380], #4063) - Add missing setters to
Rfc5424LayoutBuilder
Changed
- Ensure scripts in the global
Scriptselement have explicit names by throwing aConfigurationExceptionfor unnamed ones. (#3176) - Simplify file manager registry factory methods (#3968)
Deprecated
- Deprecated withers in builder classes in favor of setters. This change improves API consistency with Log4j Core 3 and helps users adapt to the upcoming changes. (#3750)
Fixed
- Fix script resolution failure when the
Scriptselement is placed after aScriptRefin the configuration. (#3336) - Fix
ArrayIndexOutOfBoundsExceptionthrown byThrowableStackTraceRendererwhen the stack trace is modified concurrently (#3940, #3955) - Fix
SLF4JLogger.atFatal()returningatLevel(Level.TRACE)instead ofatLevel(Level.FATAL). This was causingFATAL-level log events to be silently discarded when using the fluent API through thelog4j-to-slf4jbridge. (#4068, #4089) - Fix Javadoc references across module boundaries (i.e., cross-references) (#4099, #4100)
- Fix header write in
RollingRandomAccessFileManagerthat was being incorrectly skipped ifappend=trueand the file didn’t exist before - Fix a properties file configuration regression caused by not referenced loggers, appenders, and filters (#4036, #4069)
Removed
- Remove the
jvmrunargslookup. (#3874)
Updated
- Update
org.junit:junit-bomto version5.13.4(#3850) - Update
org.mongodb:bsonto version5.6.1(#3961) - Update
org.xerial.snappy:snappy-javato version1.1.10.8(#3841)
Source apache/logging-log4j2 ·
rel/2.26.0· 2026-05-07 · upstream release
Mirrored verbatim for indexing. All rights belong to the upstream project.
Release notes are published by the upstream project and mirrored here for indexing. All rights belong to their authors.