This is a vote to release Log4j 2.11.0, the next version of the Log4j 2 project.
Please download, test, and cast your votes on the log4j developers list. [] +1, release the artifacts [] -1, don't release because... The vote will remain open for 72 hours (or more if required). All votes are welcome and we encourage everyone to test the release, but only Logging PMC votes are “officially” counted. As always, at least 3 +1 votes and more positive than negative votes are required. Note that this release supports SLF4J 1.7.x and SLF4J 1.8.x. Because SLF4J 1.7.x requires implementations to include classes in the org.slf4j.impl package log4j-sl4j-impl cannot be used as a Java 9 module. Support for SLF4J 1.7.x will be removed in a future release. Changes in this version include: New Features • LOG4J2-2253: Add API to enable iterating over message parameters without creating temporary objects. Thanks to Carter Kozak. • LOG4J2-1883: Added support for precise (micro and nanosecond) timestamps when running on Java 9. A limited number of precise %d date formats are supported with PatternLayout. POTENTIAL BREAKING CHANGE: The XML, JSON and YAML formats have changed: they no longer have the "timeMillis" attribute and instead have an "Instant" element with "epochSecond" and "nanoOfSecond" attributes. Thanks to Anthony Maire. • LOG4J2-2190: Output JSON object for ObjectMessage in JsonLayout. Thanks to Franz Wong. • LOG4J2-2191: Made log4j-core a multi-release ("multi-version") jar, added log4j-core-java9 module. • LOG4J2-2143: Add missing converters to PatternLayout. • LOG4J2-2160: Add API org.apache.logging.log4j.core.lookup.Interpolator.getStrLookupMap(). • LOG4J2-2179: The MongoDB Appender should use a keys and values for a Log4j MapMessage. • LOG4J2-2180: Add a MongoDbProvider builder for and deprecate org.apache.logging.log4j.mongodb.MongoDbProvider.createNoSqlProvider(). • LOG4J2-2181: The JDBC Appender should use keys and values from a Log4j MapMessage. • LOG4J2-2185: Add a simple JDBC DriverManager-based ConnectionSource that uses JDBC's DriverManager#getConnection(String, String, String). • LOG4J2-2186: Add a JDBC ConnectionSource that provides pooling through Apache Commons DBCP 2. • LOG4J2-2187: Add a hook for a Connection Source for a JDBC Appender to release its resources. • LOG4J2-2203: Add org.apache.logging.log4j.core.util.WatchManager#unwatch(File). • LOG4J2-2206: Add method org.apache.logging.log4j.core.util.WatchManager.reset(File) and reset(). • LOG4J2-2208: Add debug logging to org.apache.logging.log4j.mongodb.MongoDbConnection. Fixed Bugs • LOG4J2-2271: Move module-info.class to META-INF/versions/9 directory. • LOG4J2-2254: Incorrect automatics module name header was being included in manifests. • LOG4J2-2247: NullPointerException would occur when header was provided to a Layout on RollingRandingAccessFileAppender with DirectWriteRolloverStrategy. • LOG4J2-2129: Log4j2 throws NoClassDefFoundError in Java 9 in java.util.ServiceLoader. Thanks to Blazej Bucko. • LOG4J2-2158: Fixed bug where ThreadContext map was cleared, resulting in entries being only available for one log event. Thanks to Björn Kautler. • LOG4J2-2002: Avoid null attribute values in DefaultConfigurationBuilder. Thanks to Paul Burrowes. • LOG4J2-2175: Fix typo in Property Substitution docs. Thanks to Behrang Saeedzadeh. • LOG4J2-2163: Allow SortedArrayStringMap to be filtered upon deserialization. Fix build error in Java 9 when compiling log4j-core test classes. • LOG4J2-2157: Don't create exit message in traceExit(R) when logging is disabled. Thanks to Malte Skoruppa. • LOG4J2-2123: DefaultMergeStrategy did not merge filters on loggers correctly. Thanks to Jacob Tolar. • LOG4J2-2126: Removed compile-time dependency on Java Management APIs from Log4J API module to improve compatibility with Android Platform which does not support JMX extensions. Thanks to Oleg Kalnichevski. • LOG4J2-2270: Strings::join, when called with [null] returns "null" instead of EMPTY. Thanks to Cyril Martin. • LOG4J2-2276: ConcurrentModificationException from org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:71). Thanks to Sean Baxter. • LOG4J2-2274: Allow EnvironmentPropertySource to run with a SecurityManager that rejects environment variable access. Thanks to Sebastien Lannez. • LOG4J2-2279: Allow SystemPropertiesPropertySource to run with a SecurityManager that rejects system property access. Thanks to Gary Gregory. Changes • LOG4J2-2273: Documentation fix in manual page for custom configurations. Thanks to Bruno P. Kinoshita. • LOG4J2-2252: Reusable LogEvents now pass the original format string to downstream components like layouts and filters. Thanks to Carter Kozak. • LOG4J2-2250: The internal status logger timestamp format is now configurable with system property log4j2.StatusLogger.DateFormat. • LOG4J2-2236: Removed unnecessary dependency on jcommander since Log4j uses embedded picocli since 2.9. • LOG4J2-2146: Update version of maven bundle plugin to 3.4.0. Convert bundle plugin error to a warning. • LOG4J2-2215: Reduce compiler warnings in log4j-api. • LOG4J2-2127: Removed unnecessary threadlocal StringBuilder field from MdcPatternConverter. Thanks to Carter Kozak. • LOG4J2-2194: Require Java 9 to compile the log4j-perf module to allow benchmarking with Java 9 APIs. • LOG4J2-2193: Update JMH to version 1.19 from 1.1.1. • LOG4J2-2132: Update ZeroMQ's jeromq from 0.4.2 to 0.4.3. • LOG4J2-2165: Update Jackson from 2.9.2 to 2.9.3. • LOG4J2-2184: Update MongoDB driver from 3.0.4 to 3.6.1. • LOG4J2-2197: Document default property value support. Thanks to Fabrice Daugan. • LOG4J2-2198: Update MongoDB dependencies from classic to modern. • LOG4J2-2204: org.apache.logging.log4j.core.util.WatchManager.getWatchers() should pre-allocate its new Map. • LOG4J2-2209: Rename existing MongoDb plugin and related artifacts from MongoDb to MongoDb2. • LOG4J2-2210: Fix error log message for Script which says ScriptFile instead. Thanks to Björn Kautler. • LOG4J2-2212: Unnecessary contention in CopyOnWriteSortedArrayThreadContextMap. Thanks to Daniel Feist, Gary Gregory. • LOG4J2-2213: Unnecessary contention in GarbageFreeSortedArrayThreadContextMap. Thanks to Daniel Feist, Gary Gregory. • LOG4J2-2214: Unnecessary contention in DefaultThreadContextMap. Thanks to Daniel Feist, Gary Gregory. • LOG4J2-2182: NullPointerException at org.apache.logging.log4j.util.Activator.loadProvider(Activator.java:81) in log4j 2.10.0. Thanks to liwenxian2017, Gary Gregory. • LOG4J2-2202: MarkerFilter onMismatch invalid attribute in .properties. Thanks to Kilian, Gary Gregory. • LOG4J2-2219: Configuration builder classes should look for "onMismatch", not "onMisMatch". Thanks to Kilian, Gary Gregory. • LOG4J2-2205: New module log4j-mongodb3: Remove use of deprecated MongoDB APIs and code to the Java driver version 3 API. Thanks to Gary Gregory. • LOG4J2-2188: Split off JPA support into a new module log4j-jpa. Thanks to Gary Gregory. • LOG4J2-2229: Update Jackson from 2.9.3 to 2.9.4. Thanks to Gary Gregory. • LOG4J2-2243: Cannot see or copy all of certain JAnsi exception messages on Windows due to NUL characters. Thanks to Gary Gregory. • LOG4J2-2245: Update Apache Commons Compress from 1.15 to 1.16.1. Thanks to Gary Gregory. • LOG4J2-2259: Update MongoDB 3 module from driver 3.6.1 to 3.6.3. • LOG4J2-2260: [SMTP] Update javax.mail from 1.6.0 to 1.6.1. • LOG4J2-2264: Update JAnsi from 1.16 to 1.17. Tag: a) for a new copy do "git clone https://git-wip-us.apache.org/repos/asf/logging-log4j2.git <https://git-wip-us.apache.org/repos/asf/logging-log4j2.git>" and then "git checkout tags/log4j-2.11.0-rc1” b) for an existing working copy to “git pull” and then “git checkout tags/log4j-2.11.0-rc1” Web Site: http://rgoers.github.io/log4j2-site/index.html <http://rgoers.github.io/log4j2-site/index.html> Maven Artifacts: https://repository.apache.org/content/repositories/orgapachelogging-1032 <https://repository.apache.org/content/repositories/orgapachelogging-1032> Distribution archives: https://dist.apache.org/repos/dist/dev/logging/log4j/ <https://dist.apache.org/repos/dist/dev/logging/log4j/> You may download all the Maven artifacts by executing: wget -e robots=off --cut-dirs=7 -nH -r -p -np --no-check-certificate https://repository.apache.org/content/repositories/orgapachelogging-1032/org/apache/logging/log4j/ <https://repository.apache.org/content/repositories/orgapachelogging-1032/org/apache/logging/log4j/> Ralph