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.
- 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
- Ensure scripts in the global
Scriptselement have explicit names by throwing aConfigurationExceptionfor unnamed ones. (#3176) - Simplify file manager registry factory methods (#3968)
- 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)
- 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)
- Remove the
jvmrunargslookup. (#3874)
- 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)
v16.8.1
- 3f309a9 do not use maven-gpg-plugin to sign on release
- 7f52cb4 remove snapshotRepository
We'd like to thank the following people for their contributions:
- Gustav Karlsson (@kagkarlsson)