2.3
- Release date
-
2015-05-09
This is the sixth GA release. It contains several bugfixes and new features.
Apache Log4j 2.3 requires a minimum of Java 6 to build and run. This will be the last release of Log4j 2 to support Java 6. Future releases will require a minimum of Java 7.
Basic compatibility with Log4j 1.x is provided through the log4j-1.2-api
component, however it does
not implement some of the very implementation specific classes and methods.
The package names and Maven groupId
have been changed to org.apache.logging.log4j
to avoid any conflicts with Log4j 1.x.
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.
Added
-
Truncate from the end of text format modifier. (LOG4J2-926)
-
PatternLayout %highlight to support noConsoleNoAnsi like %style. (LOG4J2-984)
Changed
-
Update Jackson from 2.5.1 to 2.5.3. (LOG4J2-1004)
-
Update Slf4j from 1.7.7 to 1.7.12. (LOG4J2-1005)
-
Migrate tests from Logback 1.1.2 to 1.1.3. (LOG4J2-987)
-
Update LMAX Disruptor from 3.3.0 to 3.3.2. (LOG4J2-988)
-
Update tests to use ActiveMQ from 5.10 to 5.11.1. (LOG4J2-988)
-
Move UTF-8 constant from Charsets to Constants class. Remove Charsets class. (LOG4J2-995)
-
Make org.apache.logging.log4j.core.Logger#updateConfiguration protected. (LOG4J2-998)
Fixed
-
JUL Logger.throwing is mis-mapped to ERROR when it should be TRACE. (LOG4J2-1003)
-
org.apache.logging.log4j.core.util#fileFromUri(URI uri) incorrectly converts '+' characters to spaces. (LOG4J2-1007)
-
org.apache.logging.log4j.core.config.plugins.util.ResolverUtil.extractPath(URL) incorrectly converts '+' characters to spaces. (LOG4J2-1008)
-
Incorrectly defined compressionType parameter to GelfLayout. (LOG4J2-1009)
-
A new StatusLoggerAdmin listener is added to StatusLogger every time the log is reconfigured. (LOG4J2-947)
-
StringFormattedMessage serialization is incorrect. (LOG4J2-964)
-
System.out no longer works after the Console appender and JANSI are initialized. (LOG4J2-965)
-
KeyStoreConfiguration.createKeyStoreConfiguration() ignores keyManagerFactoryAlgorithm. (LOG4J2-966)
-
log4j2.component.properties not read for all properties. (LOG4J2-967)
-
SyslogLayout contains extra space. (LOG4J2-968)
-
Another bad priority in Syslog messages. (LOG4J2-971)
-
org.apache.logging.log4j.core.net.ssl.TlsSyslogInputStreamReader does not need to create temp Integer objects. (LOG4J2-972)
-
Typo in EventLogger documentation. (LOG4J2-974)
-
Using monitorInterval with YAML config file format causes JSONParseException. (LOG4J2-976)
-
Numerical overflow in BurstFilter not handled correctly. (LOG4J2-980)
-
Incorrect unlock in ProviderUtil. (LOG4J2-981)
-
AbstractFilter should not implement equals() and hashCode(). (LOG4J2-985)
-
Async root logger config should default includeLocation to false. (LOG4J2-991)
-
Deadlock would occur if appender thread creates a new Logger during reconfiguration. (LOG4J2-993)