blob: 76e65ac71770bc5d86eb57575bbdaa7c5ad4137f [file] [log] [blame]
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.11.1 from target/generated-sources/site/asciidoc/_release-notes/_2.9.0.adoc at 2024-03-06
| Rendered using Apache Maven Fluido Skin 1.11.2
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" />
<title>Log4j &#x2013; </title>
<link rel="stylesheet" href="../css/apache-maven-fluido-1.11.2.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
<script src="../js/apache-maven-fluido-1.11.2.min.js"></script>
</head>
<body class="topBarDisabled">
<div class="container-fluid">
<header>
<div id="banner">
<div class="pull-left"><a href="../../.." id="bannerLeft"><img src="../images/ls-logo.jpg" alt="" style="" /></a></div>
<div class="pull-right"><a href=".././" id="bannerRight"><img src="../images/logo.png" alt="" style="" /></a></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate">Last Published: 2024-03-06<span class="divider">|</span>
</li>
<li id="projectVersion">Version: 2.23.1</li>
<li class="pull-right"><span class="divider">|</span>
<a href="https://github.com/apache/logging-log4j2" class="externalLink" title="GitHub">GitHub</a></li>
<li class="pull-right"><span class="divider">|</span>
<a href="../../../" title="Logging Services">Logging Services</a></li>
<li class="pull-right"><span class="divider">|</span>
<a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a></li>
<li class="pull-right"><a href="https://cwiki.apache.org/confluence/display/LOGGING/Log4j" class="externalLink" title="Logging Wiki">Logging Wiki</a></li>
</ul>
</div>
</header>
<div class="row-fluid">
<header id="leftColumn" class="span2">
<nav class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header"><img class="imageLink" src="../img/glyphicons/home.png" alt="Apache Log4j™ 2" style="border: 0;" /> Apache Log4j™ 2</li>
<li><a href="../index.html" title="About"><span class="none"></span>About</a></li>
<li><a href="../download.html" title="Download"><span class="none"></span>Download</a></li>
<li><a href="../support.html" title="Support"><span class="none"></span>Support</a></li>
<li><a href="../maven-artifacts.html" title="Maven, Ivy, Gradle Artifacts"><span class="icon-chevron-right"></span>Maven, Ivy, Gradle Artifacts</a></li>
<li><a href="../release-notes.html" title="Release Notes"><span class="none"></span>Release Notes</a></li>
<li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
<li><a href="../performance.html" title="Performance"><span class="icon-chevron-right"></span>Performance</a></li>
<li><a href="../articles.html" title="Articles and Tutorials"><span class="none"></span>Articles and Tutorials</a></li>
<li><a href="../security.html" title="Security"><span class="icon-chevron-right"></span>Security</a></li>
<li class="nav-header"><img class="imageLink" src="../img/glyphicons/book.png" alt="Manual" style="border: 0;" /> Manual</li>
<li><a href="../manual/index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
<li><a href="../manual/architecture.html" title="Architecture"><span class="none"></span>Architecture</a></li>
<li><a href="../manual/api-separation.html" title="API Separation"><span class="none"></span>API Separation</a></li>
<li><a href="../manual/migration.html" title="Log4j 1.x Migration"><span class="icon-chevron-right"></span>Log4j 1.x Migration</a></li>
<li><a href="../manual/api.html" title="Java API"><span class="icon-chevron-right"></span>Java API</a></li>
<li><a href="../../kotlin" title="Kotlin API"><span class="none"></span>Kotlin API</a></li>
<li><a href="../../scala" title="Scala API"><span class="none"></span>Scala API</a></li>
<li><a href="../manual/configuration.html" title="Configuration"><span class="icon-chevron-right"></span>Configuration</a></li>
<li><a href="../manual/usage.html" title="Usage"><span class="icon-chevron-right"></span>Usage</a></li>
<li><a href="../manual/webapp.html" title="Web Applications and JSPs"><span class="icon-chevron-right"></span>Web Applications and JSPs</a></li>
<li><a href="../manual/lookups.html" title="Lookups"><span class="icon-chevron-right"></span>Lookups</a></li>
<li><a href="../manual/appenders.html" title="Appenders"><span class="icon-chevron-right"></span>Appenders</a></li>
<li><a href="../manual/layouts.html" title="Layouts"><span class="icon-chevron-right"></span>Layouts</a></li>
<li><a href="../manual/filters.html" title="Filters"><span class="icon-chevron-right"></span>Filters</a></li>
<li><a href="../manual/async.html" title="Async Loggers"><span class="icon-chevron-right"></span>Async Loggers</a></li>
<li><a href="../manual/garbagefree.html" title="Garbage-free Logging"><span class="icon-chevron-right"></span>Garbage-free Logging</a></li>
<li><a href="../manual/jmx.html" title="JMX"><span class="none"></span>JMX</a></li>
<li><a href="../manual/logsep.html" title="Logging Separation"><span class="none"></span>Logging Separation</a></li>
<li><a href="../manual/extending.html" title="Extending Log4j"><span class="icon-chevron-right"></span>Extending Log4j</a></li>
<li><a href="../manual/plugins.html" title="Plugins"><span class="icon-chevron-right"></span>Plugins</a></li>
<li><a href="../manual/customconfig.html" title="Programmatic Log4j Configuration"><span class="icon-chevron-right"></span>Programmatic Log4j Configuration</a></li>
<li><a href="../manual/customloglevels.html" title="Custom Log Levels"><span class="icon-chevron-right"></span>Custom Log Levels</a></li>
<li class="nav-header"><img class="imageLink" src="../img/glyphicons/pencil.png" alt="For Contributors" style="border: 0;" /> For Contributors</li>
<li><a href="../guidelines.html" title="Guidelines"><span class="none"></span>Guidelines</a></li>
<li><a href="../javastyle.html" title="Style Guide"><span class="none"></span>Style Guide</a></li>
<li class="nav-header"><img class="imageLink" src="../img/glyphicons/cog.png" alt="Components" style="border: 0;" /> Components</li>
<li><a href="../log4j-api.html" title="API"><span class="none"></span>API</a></li>
<li><a href="../log4j-jcl.html" title="Commons Logging Bridge"><span class="none"></span>Commons Logging Bridge</a></li>
<li><a href="../log4j-1.2-api.html" title="Log4j 1.2 API"><span class="none"></span>Log4j 1.2 API</a></li>
<li><a href="../log4j-slf4j-impl.html" title="SLF4J Binding"><span class="none"></span>SLF4J Binding</a></li>
<li><a href="../log4j-jul.html" title="JUL Adapter"><span class="none"></span>JUL Adapter</a></li>
<li><a href="../log4j-jpl.html" title="JDK Platform Logger"><span class="none"></span>JDK Platform Logger</a></li>
<li><a href="../log4j-to-slf4j.html" title="Log4j 2 to SLF4J Adapter"><span class="none"></span>Log4j 2 to SLF4J Adapter</a></li>
<li><a href="../log4j-flume-ng.html" title="Apache Flume Appender"><span class="none"></span>Apache Flume Appender</a></li>
<li><a href="../log4j-taglib.html" title="Log4j Tag Library"><span class="none"></span>Log4j Tag Library</a></li>
<li><a href="../log4j-jmx-gui.html" title="Log4j JMX GUI"><span class="none"></span>Log4j JMX GUI</a></li>
<li><a href="../log4j-web.html" title="Log4j Web Application Support"><span class="none"></span>Log4j Web Application Support</a></li>
<li><a href="../log4j-jakarta-web.html" title="Log4j Jakarta Web Application Support"><span class="none"></span>Log4j Jakarta Web Application Support</a></li>
<li><a href="../log4j-appserver.html" title="Log4j Application Server Integration"><span class="none"></span>Log4j Application Server Integration</a></li>
<li><a href="../log4j-couchdb.html" title="Log4j CouchDB appender"><span class="none"></span>Log4j CouchDB appender</a></li>
<li><a href="../log4j-mongodb3.html" title="Log4j MongoDB3 appender"><span class="none"></span>Log4j MongoDB3 appender</a></li>
<li><a href="../log4j-mongodb4.html" title="Log4j MongoDB4 appender"><span class="none"></span>Log4j MongoDB4 appender</a></li>
<li><a href="../log4j-cassandra.html" title="Log4j Cassandra appender"><span class="none"></span>Log4j Cassandra appender</a></li>
<li><a href="../log4j-iostreams.html" title="Log4j IO Streams"><span class="none"></span>Log4j IO Streams</a></li>
<li><a href="../log4j-docker.html" title="Log4j Docker Support"><span class="none"></span>Log4j Docker Support</a></li>
<li><a href="../log4j-kubernetes.html" title="Log4j Kubernetes Support"><span class="none"></span>Log4j Kubernetes Support</a></li>
<li><a href="../log4j-spring-boot.html" title="Log4j Spring Boot"><span class="none"></span>Log4j Spring Boot</a></li>
<li><a href="../log4j-spring-cloud-config-client.html" title="Log4j Spring Cloud Config Client"><span class="none"></span>Log4j Spring Cloud Config Client</a></li>
<li class="nav-header"><img class="imageLink" src="../img/glyphicons/tag.png" alt="Related Projects" style="border: 0;" /> Related Projects</li>
<li><a href="../../../chainsaw/2.x/index.html" title="Chainsaw"><span class="none"></span>Chainsaw</a></li>
<li><a href="../../../log4cxx/latest_stable/index.html" title="Log4Cxx"><span class="none"></span>Log4Cxx</a></li>
<li><a href="../../../log4j-audit/latest/index.html" title="Log4j Audit"><span class="none"></span>Log4j Audit</a></li>
<li><a href="../../kotlin" title="Log4j Kotlin"><span class="none"></span>Log4j Kotlin</a></li>
<li><a href="../../scala" title="Log4j Scala"><span class="none"></span>Log4j Scala</a></li>
<li><a href="../../transform" title="Log4j Transform"><span class="none"></span>Log4j Transform</a></li>
<li><a href="../../../log4net/index.html" title="Log4Net"><span class="none"></span>Log4Net</a></li>
<li class="nav-header"><img class="imageLink" src="../img/glyphicons/link.png" alt="Legacy Sites" style="border: 0;" /> Legacy Sites</li>
<li><a href="../../log4j-2.12.4/" title="Log4j 2.12.4 - Java 7"><span class="none"></span>Log4j 2.12.4 - Java 7</a></li>
<li><a href="../../log4j-2.3.2/" title="Log4j 2.3.2 - Java 6"><span class="none"></span>Log4j 2.3.2 - Java 6</a></li>
<li><a href="../../1.2/" title="Log4j 1.2 - End of Life"><span class="none"></span>Log4j 1.2 - End of Life</a></li>
<li class="nav-header"><img class="imageLink" src="../img/glyphicons/info.png" alt="Project Information" style="border: 0;" /> Project Information</li>
<li><a href="../team.html" title="Project Team"><span class="none"></span>Project Team</a></li>
<li><a href="https://www.apache.org/licenses/LICENSE-2.0" class="externalLink" title="Project License"><span class="none"></span>Project License</a></li>
<li><a href="https://github.com/apache/logging-log4j2" class="externalLink" title="Source Repository"><span class="none"></span>Source Repository</a></li>
<li><a href="../runtime-dependencies.html" title="Runtime Dependencies"><span class="none"></span>Runtime Dependencies</a></li>
<li><a href="../javadoc.html" title="Javadoc"><span class="none"></span>Javadoc</a></li>
<li><a href="../thanks.html" title="Thanks"><span class="none"></span>Thanks</a></li>
</ul>
</nav>
<div class="well sidebar-nav">
<div id="poweredBy">
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
</div>
</div>
</header>
<main id="bodyColumn" class="span10" >
<div class="sect1">
<h2 id="release-notes-2-9-0">2.9.0</h2>
<div class="sectionbody">
<div class="dlist">
<dl>
<dt class="hdlist1">Release date</dt>
<dd>
<p>2017-08-26</p>
</dd>
</dl>
</div>
<div class="paragraph">
<p>This release contains the first support of Java 9 as well as bugfixes and minor enhancements.
The Log4j API was modified to use <code>java.util.ServiceLoader</code> to locate Log4j implementations, although the former binding mechanism is still supported.
The Log4j JAR is now a multi-release JAR to provide implementations of the Java 9 specific classes.
Multi-release JARs are not supported by the OSGi specification so OSGi modules will not be able to take advantage of these implementations but will not lose functionality as they will fall back to the implementations used in Java 7 and 8.
More details on the new features and fixes are itemized below.</p>
</div>
<div class="paragraph">
<p>Note that subsequent to the 2.9.0 release, for security reasons, <code>SerializedLayout</code> is deprecated and no longer used as default in the Socket and JMS appenders.
<code>SerializedLayout</code> can still be used as before, but has to be specified explicitly.
To retain old behaviour, you have to change configuration like:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-xml" data-lang="xml">&lt;Appenders&gt;
&lt;Socket name="socket" host="localhost" port="9500"/&gt;
&lt;/Appenders&gt;</code></pre>
</div>
</div>
<div class="paragraph">
<p>into:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-xml" data-lang="xml">&lt;Appenders&gt;
&lt;Socket name="socket" host="localhost" port="9500"&gt;
&lt;SerializedLayout/&gt;
&lt;/Socket&gt;
&lt;/Appenders&gt;</code></pre>
</div>
</div>
<div class="paragraph">
<p>We do, however, discourage the use of <code>SerializedLayout</code> and recommend <code>JsonLayout</code> as a replacement:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-xml" data-lang="xml">&lt;Appenders&gt;
&lt;Socket name="socket" host="localhost" port="9500"&gt;
&lt;JsonLayout properties="true"/&gt;
&lt;/Socket&gt;
&lt;/Appenders&gt;</code></pre>
</div>
</div>
<div class="paragraph">
<p>Note that subsequent to the 2.9.0 release, for security reasons, Log4j does not process DTD in XML files.
If you used DTD for including snippets, you have to use XInclude or Composite Configuration instead.</p>
</div>
<div class="paragraph">
<p>The Log4j 2.9.0 API, as well as many core components, maintains binary compatibility with previous releases.</p>
</div>
<div class="paragraph">
<p>Log4j 2.9.0 requires a minimum of Java 7 to build and run.
Log4j 2.3 was the last release that supported Java 6.</p>
</div>
<div class="paragraph">
<p>Basic compatibility with Log4j 1.x is provided through the <code>log4j-1.2-api</code> component, however it does
not implement some of the very implementation specific classes and methods.
The package names and Maven <code>groupId</code> have been changed to <code>org.apache.logging.log4j</code> to avoid any conflicts with Log4j 1.x.</p>
</div>
<div class="paragraph">
<p>For complete information on Apache Log4j 2, including instructions on how to submit bug reports, patches, or suggestions for improvement, see <a href="http://logging.apache.org/log4j/2.x/">the Apache Log4j 2 website</a>.</p>
</div>
<div class="sect2">
<h3 id="release-notes-2-9-0-added">Added</h3>
<div class="ulist">
<ul>
<li>
<p>The JMS Appender should use a JMS MapMessage for a Log4j MapMessage. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1294">LOG4J2-1294</a>)</p>
</li>
<li>
<p>Add support for Java 9 StackWalker. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1359">LOG4J2-1359</a>)</p>
</li>
<li>
<p>Generic HTTP appender. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1442">LOG4J2-1442</a>)</p>
</li>
<li>
<p>Configurable Log File Permissions with PosixFilePermission. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1699">LOG4J2-1699</a>)</p>
</li>
<li>
<p>Temporary compress directory during rollover (#88). (<a href="https://issues.apache.org/jira/browse/LOG4J2-1766">LOG4J2-1766</a>)</p>
</li>
<li>
<p>Log4j2 will now print all internal logging to the console if system property <code>log4j2.debug</code> is defined with any value (or no value). (<a href="https://issues.apache.org/jira/browse/LOG4J2-1813">LOG4J2-1813</a>)</p>
</li>
<li>
<p>Added wrapper classes CustomLoggerGenerator and ExtendedLoggerGenerator to avoid class name with a dollar ($) character which has special meaning in many *nix command line environments. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1814">LOG4J2-1814</a>)</p>
</li>
<li>
<p>Support null byte delimiter in GelfLayout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1854">LOG4J2-1854</a>)</p>
</li>
<li>
<p>Add an optional random delay in TimeBasedTriggeringPolicy (<a href="https://issues.apache.org/jira/browse/LOG4J2-1855">LOG4J2-1855</a>)</p>
</li>
<li>
<p>Shortcut to add Property and KeyValuePair component in ConfigurationBuilder. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1860">LOG4J2-1860</a>)</p>
</li>
<li>
<p>Support capped collections for MongoDb appender. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1864">LOG4J2-1864</a>)</p>
</li>
<li>
<p>Added methods ::writeBytes(ByteBuffer) and ::writeBytes(byte[], int, int) to ByteBufferDestination interface and use these methods in TextEncoderHelper where possible to prepare for future enhancements to reduce lock contention. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1874">LOG4J2-1874</a>)</p>
</li>
<li>
<p>Warn when a configuration file for an inactive ConfigurationFactory is found. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1880">LOG4J2-1880</a>)</p>
</li>
<li>
<p>Added process ID (pid) pattern converter. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1884">LOG4J2-1884</a>)</p>
</li>
<li>
<p>Add forEach() methods to org.apache.logging.log4j.message.MapMessage. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1930">LOG4J2-1930</a>)</p>
</li>
<li>
<p>Add containsKey() methods to org.apache.logging.log4j.message.MapMessage. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1932">LOG4J2-1932</a>)</p>
</li>
<li>
<p>JMS Appender does not know how to recover from a broken connection. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1934">LOG4J2-1934</a>)</p>
</li>
<li>
<p>Add with(String, primitive) methods to org.apache.logging.log4j.message.MapMessage. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1935">LOG4J2-1935</a>)</p>
</li>
<li>
<p>Generate source jas for all test jars. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1945">LOG4J2-1945</a>)</p>
</li>
<li>
<p>JMS Appender should be able to connect to a broker (later) even it is not present at configuration time. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1955">LOG4J2-1955</a>)</p>
</li>
<li>
<p>JsonLayout, XmlLayout and YamlLayout support 0-byte termination of log events. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1981">LOG4J2-1981</a>)</p>
</li>
<li>
<p>Public API for parsing the output from JsonLayout/XmlLayout/YamlLayout into a LogEvent. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1986">LOG4J2-1986</a>)</p>
</li>
<li>
<p>Support printing multiple StructuredData elements in RFC5424Layout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2008">LOG4J2-2008</a>)</p>
</li>
</ul>
</div>
</div>
<div class="sect2">
<h3 id="release-notes-2-9-0-changed">Changed</h3>
<div class="ulist">
<ul>
<li>
<p>Allow for bufferSize=0 in SMTP appender. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1071">LOG4J2-1071</a>)</p>
</li>
<li>
<p>Async Loggers no longer use deprecated LMAX Disruptor APIs. (Disruptor-3.3.3 or higher is now required.) (<a href="https://issues.apache.org/jira/browse/LOG4J2-1261">LOG4J2-1261</a>)</p>
</li>
<li>
<p>Add more detail to WARN "Ignoring log event" messages printed to the console after log4j was shut down. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1801">LOG4J2-1801</a>)</p>
</li>
<li>
<p>Move server components from log4j-core to new log4-server module. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1851">LOG4J2-1851</a>)</p>
</li>
<li>
<p>Update ZeroMQ&#8217;s JeroMQ from 0.3.6 to 0.4.0. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1868">LOG4J2-1868</a>)</p>
</li>
<li>
<p>Update Kafka client from 0.10.1.1 to 0.10.2.0 (<a href="https://issues.apache.org/jira/browse/LOG4J2-1869">LOG4J2-1869</a>)</p>
</li>
<li>
<p>Update JavaMail from 1.5.5 to 1.5.6. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1872">LOG4J2-1872</a>)</p>
</li>
<li>
<p>Missing documentation for Max index limit in DefaultRolloverStrategy. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1877">LOG4J2-1877</a>)</p>
</li>
<li>
<p>Update JAnsi from 1.14 to 1.15. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1879">LOG4J2-1879</a>)</p>
</li>
<li>
<p>Add missing getters to classes in package org.apache.logging.log4j.core.net.ssl. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1899">LOG4J2-1899</a>)</p>
</li>
<li>
<p>Update JAnsi from 1.15 to 1.16. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1900">LOG4J2-1900</a>)</p>
</li>
<li>
<p>Improved error message when misconfigured with multiple incompatible appenders targeting same file. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1908">LOG4J2-1908</a>)</p>
</li>
<li>
<p>Support using java.util.ServiceLoader to locate Log4j 2 API providers. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1917">LOG4J2-1917</a>)</p>
</li>
<li>
<p>Facilitate log4j use in Android applications: remove dependency on RMI and Management APIs from log4j-api. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1926">LOG4J2-1926</a>)</p>
</li>
<li>
<p>Add support for DirectWriteRolloverStrategy to RollingRandomAccessFileAppender. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1928">LOG4J2-1928</a>)</p>
</li>
<li>
<p>Update Jackson from 2.8.7 to 2.8.9. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1938">LOG4J2-1938</a>)</p>
</li>
<li>
<p>Fix docker build with jdk9 requirements (#84). (<a href="https://issues.apache.org/jira/browse/LOG4J2-1950">LOG4J2-1950</a>)</p>
</li>
<li>
<p>Configurations with multiple root loggers now fail loudly. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1954">LOG4J2-1954</a>)</p>
</li>
<li>
<p>JMS Appender broker password should be a char[], not a String. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1956">LOG4J2-1956</a>)</p>
</li>
<li>
<p>Deprecate SerializedLayout and remove it as default. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1958">LOG4J2-1958</a>)</p>
</li>
<li>
<p>Disable DTD processing in XML configuration files. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1959">LOG4J2-1959</a>)</p>
</li>
<li>
<p>Update ZeroMQ&#8217;s JeroMQ from 0.4.0 to 0.4.1. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1960">LOG4J2-1960</a>)</p>
</li>
<li>
<p>Update Kafka client from 0.10.2.0 to 0.11.0.0 (<a href="https://issues.apache.org/jira/browse/LOG4J2-1962">LOG4J2-1962</a>)</p>
</li>
<li>
<p>Include separator option of PatternLayout in manual (and other updates). (<a href="https://issues.apache.org/jira/browse/LOG4J2-1966">LOG4J2-1966</a>)</p>
</li>
<li>
<p>Update HdrHistogram from 2.1.8 to 2.1.9. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1970">LOG4J2-1970</a>)</p>
</li>
<li>
<p>Update ZeroMQ&#8217;s JeroMQ from 0.4.1 to 0.4.2. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1974">LOG4J2-1974</a>)</p>
</li>
<li>
<p>Update javax.persistence from 2.1.0 to 2.1.1. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1975">LOG4J2-1975</a>)</p>
</li>
<li>
<p>Update org.osgi.core from 4.3.1 to 6.0.0. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1976">LOG4J2-1976</a>)</p>
</li>
<li>
<p>Allow maxLength of StructuredData to be specified by the user. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1984">LOG4J2-1984</a>)</p>
</li>
<li>
<p>Refactor SimpleMessage to be concise and clear (#100) (<a href="https://issues.apache.org/jira/browse/LOG4J2-1991">LOG4J2-1991</a>)</p>
</li>
<li>
<p>Replace JCommander command line parser with picocli to let users run Log4j2 utility applications without requiring an external dependency. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2011">LOG4J2-2011</a>)</p>
</li>
<li>
<p>Allow KeyStoreConfiguration and TrustStoreConfiguration to find files as resources. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2015">LOG4J2-2015</a>)</p>
</li>
<li>
<p>Update Jackson from 2.8.9 to 2.9.0. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2017">LOG4J2-2017</a>)</p>
</li>
<li>
<p>Remove default layout from KafkaAppender. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2020">LOG4J2-2020</a>)</p>
</li>
<li>
<p>RFC5424Layout now prints the process id. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2022">LOG4J2-2022</a>)</p>
</li>
<li>
<p>Use a class' canonical name instead of name to create its logger name. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2023">LOG4J2-2023</a>)</p>
</li>
<li>
<p>Update SLF4J from 1.7.24 to 1.7.25.</p>
</li>
</ul>
</div>
</div>
<div class="sect2">
<h3 id="release-notes-2-9-0-fixed">Fixed</h3>
<div class="ulist">
<ul>
<li>
<p>SocketAppender will lose several events after re-connection to server. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1311">LOG4J2-1311</a>)</p>
</li>
<li>
<p>Prevent NullPointerException when a file name is specified with the DirectWriteRolloverStrategy. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1833">LOG4J2-1833</a>)</p>
</li>
<li>
<p>Ensure the ThreadLocal StringBuilder in ParameterizedMessage won&#8217;t hold excessively much memory after logging a long message. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1858">LOG4J2-1858</a>)</p>
</li>
<li>
<p>Fix configuration documentation. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1867">LOG4J2-1867</a>)</p>
</li>
<li>
<p>More reliable checking for runtime dependencies. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1876">LOG4J2-1876</a>)</p>
</li>
<li>
<p>Fix documentation about default additivity value for loggers. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1885">LOG4J2-1885</a>)</p>
</li>
<li>
<p>Log4j throws a java.nio.charset.UnsupportedCharsetException: cp65001. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1888">LOG4J2-1888</a>)</p>
</li>
<li>
<p>Improve the documentation of the DynamicThresholdFilter. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1911">LOG4J2-1911</a>)</p>
</li>
<li>
<p>CompositeConfiguration logs warning "Unable to determine URI for configuration." However, the reconfiguration is completed. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1912">LOG4J2-1912</a>)</p>
</li>
<li>
<p>ScriptEngineManager is not available in Android and causes a NoClassDefFoundError. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1920">LOG4J2-1920</a>)</p>
</li>
<li>
<p>EOFException with FormattedMessage. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1929">LOG4J2-1929</a>)</p>
</li>
<li>
<p>The eventPrefix attribute was being ignored in the RFC5424Layout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1943">LOG4J2-1943</a>)</p>
</li>
<li>
<p>Trim levels read from properties file to remove trailing spaces. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1948">LOG4J2-1948</a>)</p>
</li>
<li>
<p>JndiManager is not released when the JmsAppender builder catches an exception trying to build itself. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1953">LOG4J2-1953</a>)</p>
</li>
<li>
<p>Reconfigure breaks DirectWriteRolloverStrategy. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1961">LOG4J2-1961</a>)</p>
</li>
<li>
<p>Dynamic reconfiguration does not work for filePattern of RollingFile. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1964">LOG4J2-1964</a>)</p>
</li>
<li>
<p>ClassCastException: org.eclipse.osgi.internal.loader.SystemBundleLoader$1 cannot be cast to java.lang.ClassLoader. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1971">LOG4J2-1971</a>)</p>
</li>
<li>
<p>Register log4j-core as an OSGi service. Skip tests for LOG4J2-1766 on macOS. Use group "staff" for LOG4J2-1699 test on macOS. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1971">LOG4J2-1971</a>)</p>
</li>
<li>
<p>Consider the StringBuilder&#8217;s capacity instead of content length when trimming. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1977">LOG4J2-1977</a>)</p>
</li>
<li>
<p>Log4j-config.xsd only allows one AppenderRef element for each Logger element. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1982">LOG4J2-1982</a>)</p>
</li>
<li>
<p>Fix default buffer size to match documentation (from 8102 to 8192 a.k.a. 8KB.) (<a href="https://issues.apache.org/jira/browse/LOG4J2-1985">LOG4J2-1985</a>)</p>
</li>
<li>
<p>Log4J JUL Bridge and RMI Security Manager causes access denied ("java.util.logging.LoggingPermission" "control") (<a href="https://issues.apache.org/jira/browse/LOG4J2-1987">LOG4J2-1987</a>)</p>
</li>
<li>
<p>Clarify Javadoc for AbstractTriggeringPolicy. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1989">LOG4J2-1989</a>)</p>
</li>
<li>
<p>ConcurrentModificationException logging a parameter of type Map. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1990">LOG4J2-1990</a>)</p>
</li>
<li>
<p>Fix compiler warnings in LoggerConfigTest. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1993">LOG4J2-1993</a>)</p>
</li>
<li>
<p>TcpSocketServer does not close accepted Sockets. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1994">LOG4J2-1994</a>)</p>
</li>
<li>
<p>HighlightConverter converts all unrecognized levels to DEBUG. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1999">LOG4J2-1999</a>)</p>
</li>
<li>
<p>StyleConverter.newInstance argument validation is incorrect. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2001">LOG4J2-2001</a>)</p>
</li>
<li>
<p>No compression when using a separate drive in Linux. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2012">LOG4J2-2012</a>)</p>
</li>
<li>
<p>SslSocketManager does not apply SSLContext on TCP reconnect. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2013">LOG4J2-2013</a>)</p>
</li>
<li>
<p>Mark FileRenameAction as successful when using alternative ways to move files. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2016">LOG4J2-2016</a>)</p>
</li>
<li>
<p>Fix incorrect documentation for LoggerNameLevelRewritePolicy. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2018">LOG4J2-2018</a>)</p>
</li>
<li>
<p>Parameter of mdcId in SyslogAppender has no default value. (<a href="https://issues.apache.org/jira/browse/LOG4J2-922">LOG4J2-922</a>)</p>
</li>
</ul>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<p align="center">Copyright &copy; 1999-2024 <a class="external" href="https://www.apache.org">The Apache Software Foundation</a>. All Rights Reserved.<br>
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.</p>
</div>
</div>
</footer>
<script>
if(anchors) {
anchors.add();
}
</script>
</body>
</html>