blob: aedbcc17bc7f3dc555d992f2db1072cf24616e6c [file] [log] [blame]
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.11.1 from target/generated-sources/site/asciidoc/_release-notes/_2.15.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-15-0">2.15.0</h2>
<div class="sectionbody">
<div class="dlist">
<dl>
<dt class="hdlist1">Release date</dt>
<dd>
<p>2021-12-06</p>
</dd>
</dl>
</div>
<div class="paragraph">
<p>This release contains a number of bug fixes and minor enhancements which are listed below.</p>
</div>
<div class="paragraph">
<p>The Log4j team has been made aware of a security vulnerability, CVE-2021-44228, that has been addressed in Log4j 2.15.0.</p>
</div>
<div class="paragraph">
<p>Log4j&#8217;s JNDI support has not restricted what names could be resolved.
Some protocols are unsafe or can allow remote code execution.
Log4j now limits the protocols by default to only java, ldap, and ldaps and limits the ldap protocols to only accessing Java primitive objects by default served on the local host.</p>
</div>
<div class="paragraph">
<p>One vector that allowed exposure to this vulnerability was Log4j&#8217;s allowance of Lookups to appear in log messages.
As of Log4j 2.15.0 this feature is now disabled by default.
While an option has been provided to enable Lookups in this fashion, users are strongly discouraged from enabling it.</p>
</div>
<div class="paragraph">
<p>Users who cannot upgrade to 2.15.0 can mitigate the exposure by:</p>
</div>
<div class="olist arabic">
<ol class="arabic">
<li>
<p>Users of Log4j 2.10 or greater may add <code>-Dlog4j.formatMsgNoLookups=true</code> as a command line option or add <code>log4j.formatMsgNoLookups=true</code> to a <code>log4j2.component.properties</code> file on the classpath to prevent lookups in log event messages.</p>
</li>
<li>
<p>Users since Log4j 2.7 may specify <code>%{nolookups}</code> in the <code>PatternLayout</code> configuration to prevent lookups in log event messages.</p>
</li>
<li>
<p>Remove the <code>JndiLookup</code> and <code>JndiManager</code> classes from the <code>log4j-core</code> JAR.
Removal of the <code>JndiManager</code> will cause the <code>JndiContextSelector</code> and <code>JMSAppender</code> to no longer function.</p>
</li>
</ol>
</div>
<div class="paragraph">
<p>Due to a break in compatibility in the SLF4J binding, Log4j now ships with two versions of the SLF4J to Log4j adapters.
<code>log4j-slf4j-impl</code> should be used with SLF4J 1.7.x and earlier and <code>log4j-slf4j18-impl</code> should be used with SLF4J 1.8.x and later.
SLF4J-2.0.0 alpha releases are not fully supported.
See <a href="https://issues.apache.org/jira/browse/LOG4J2-2975">LOG4J2-2975</a> and <a href="https://jira.qos.ch/browse/SLF4J-511">SLF4J-511</a>.</p>
</div>
<div class="paragraph">
<p>Some of the new features in Log4j 2.15.0 include:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Support for Arbiters, which are conditionals that can enable sections of the logging configuration for inclusion or exclusion.
In particular, <code>SpringProfile</code>, <code>SystemProperty</code>, Script, and Class Arbiters have been provided that use the Spring profile, System property, the result of a script, or the presence of a class respectively to determine whether a section of configuration should be included.</p>
</li>
<li>
<p>Support for Jakarta EE 9.
This is functionally equivalent to Log4j&#8217;s <code>log4j-web</code> module but uses the Jakarta project.</p>
</li>
<li>
<p>Various performance improvements.</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Key changes to note:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Prior to this release Log4j would automatically resolve Lookups contained in the message or its parameters in the Pattern Layout.
This behavior is no longer the default and must be enabled by specifying <code>%msg{lookup}</code>.</p>
</li>
<li>
<p>The JNDI Lookup has been restricted to only support the java, ldap, and ldaps protocols by default.
LDAP also no longer supports classes that implement the <code>Referenceable</code> interface and restricts the Serializable classes to the Java primitive classes by default and requires an allow list to be specified to access remote LDAP servers.</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>The Log4j 2.15.0 API, as well as many core components, maintains binary compatibility with previous releases.</p>
</div>
<div class="paragraph">
<p>Apache Log4j 2.15.0 requires a minimum of Java 8 to build and run.
Log4j 2.12.1 is the last release to support Java 7.
Java 7 is no longer supported by the Log4j team.</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-15-0-added">Added</h3>
<div class="ulist">
<ul>
<li>
<p>Add support for US-style date patterns and micro/nano seconds to FixedDateTime. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2885">LOG4J2-2885</a>)</p>
</li>
<li>
<p>Add BasicAsyncLoggerContextSelector equivalent to AsyncLoggerContextSelector for applications with a single LoggerContext. This selector avoids classloader lookup overhead incurred by the existing AsyncLoggerContextSelector. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2940">LOG4J2-2940</a>)</p>
</li>
<li>
<p>Context selectors are aware of their dependence upon the callers ClassLoader, allowing basic context selectors to avoid the unnecessary overhead of walking the stack to determine the caller&#8217;s ClassLoader. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2940">LOG4J2-2940</a>)</p>
</li>
<li>
<p>Add support for Jakarta EE 9 (Tomcat 10 / Jetty 11) (<a href="https://issues.apache.org/jira/browse/LOG4J2-2978">LOG4J2-2978</a>)</p>
</li>
<li>
<p>Add plugin support to JsonTemplateLayout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3004">LOG4J2-3004</a>)</p>
</li>
<li>
<p>Allow a PatternSelector to be specified on GelfLayout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3041">LOG4J2-3041</a>)</p>
</li>
<li>
<p>Add RepeatPatternConverter. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3044">LOG4J2-3044</a>)</p>
</li>
<li>
<p>Add improved MapMessage support to GelfLayout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3048">LOG4J2-3048</a>)</p>
</li>
<li>
<p>Allow MapMessage and ThreadContext attributes to be prefixed. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3049">LOG4J2-3049</a>)</p>
</li>
<li>
<p>Allow AdditionalFields to be ignored if their value is null or a zero-length String. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3050">LOG4J2-3050</a>)</p>
</li>
<li>
<p>Add CaseConverterResolver to JsonTemplateLayout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3051">LOG4J2-3051</a>)</p>
</li>
<li>
<p>Refactor MD5 usage for sharing sensitive information. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3056">LOG4J2-3056</a>)</p>
</li>
<li>
<p>Add Arbiters and SpringProfile plugin. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3064">LOG4J2-3064</a>)</p>
</li>
<li>
<p>Add CounterResolver to JsonTemplateLayout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3067">LOG4J2-3067</a>)</p>
</li>
<li>
<p>Add replacement parameter to ReadOnlyStringMapResolver. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3074">LOG4J2-3074</a>)</p>
</li>
<li>
<p>Add JsonTemplateLayout for Google Cloud Platform structured logging layout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3116">LOG4J2-3116</a>)</p>
</li>
<li>
<p>Add missing slf4j-api singleton accessors to log4j-slf4j-impl (1.7) StaticMarkerBinder and StaticMDCBinder. This doesn&#8217;t impact behavior or correctness, but avoids throwing and catching NoSuchMethodErrors when slf4j is initialized and avoids linkage linting warnings. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3133">LOG4J2-3133</a>)</p>
</li>
<li>
<p>Avoid ThreadLocal overhead in RandomAccessFileAppender, RollingRandomAccessFileManager, and MemoryMappedFileManager due to the unused setEndOfBatch and isEndOfBatch methods. The methods on LogEvent are preferred. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3141">LOG4J2-3141</a>)</p>
</li>
<li>
<p>Prefer string.getBytes(Charset) over string.getBytes(String) based on performance improvements in modern Java releases. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3144">LOG4J2-3144</a>)</p>
</li>
<li>
<p>Make CRLF/HTML encoding run in O(n) worst-case time, rather than O(n^2). (<a href="https://issues.apache.org/jira/browse/LOG4J2-3170">LOG4J2-3170</a>)</p>
</li>
<li>
<p>Improve PatternLayout performance by reducing unnecessary indirection and branching. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3171">LOG4J2-3171</a>)</p>
</li>
<li>
<p>Improve NameAbbreviator worst-case performance. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3189">LOG4J2-3189</a>)</p>
</li>
<li>
<p>Allow fractional attributes for size attribute of SizeBasedTriggeringPolicy. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3194">LOG4J2-3194</a>)</p>
</li>
<li>
<p>Pattern layout no longer enables lookups within message text by default for cleaner API boundaries and reduced formatting overhead. The old 'log4j2.formatMsgNoLookups' which enabled this behavior has been removed as well as the 'nolookups' message pattern converter option. The old behavior can be enabled on a per-pattern basis using '%m{lookups}'. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3198">LOG4J2-3198</a>)</p>
</li>
</ul>
</div>
</div>
<div class="sect2">
<h3 id="release-notes-2-15-0-changed">Changed</h3>
<div class="ulist">
<ul>
<li>
<p>Handle interrupted exceptions that occur during rollover. (<a href="https://issues.apache.org/jira/browse/LOG4J2-1798">LOG4J2-1798</a>)</p>
</li>
<li>
<p>Provide support for overriding the Tomcat Log class in Tomcat 8.5+. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2025">LOG4J2-2025</a>)</p>
</li>
<li>
<p>Minor documentation corrections regarding log levels. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2540">LOG4J2-2540</a>)</p>
</li>
<li>
<p>Minor documentation corrections in the configuration section. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2541">LOG4J2-2541</a>)</p>
</li>
<li>
<p>Correct documentation for SyslogAppender when using TLS. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2553">LOG4J2-2553</a>)</p>
</li>
<li>
<p>Log4j 1.x properties were not being substituted. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2951">LOG4J2-2951</a>)</p>
</li>
<li>
<p>Fix Log Event Level vs Logger Config Level table. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3166">LOG4J2-3166</a>)</p>
</li>
<li>
<p>Update Spring framework to 5.3.13, Spring Boot to 2.5.7, and Spring Cloud to 2020.0.4.</p>
</li>
<li>
<p>Updated dependencies. - com.fasterxml.jackson.core:jackson-annotations &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 2.12.2 &#8594; 2.12.4 - com.fasterxml.jackson.core:jackson-core &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 2.12.2 &#8594; 2.12.4 - com.fasterxml.jackson.core:jackson-databind &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 2.12.2 &#8594; 2.12.4 - com.fasterxml.jackson.dataformat:jackson-dataformat-xml &#8230;&#8203;&#8230;&#8203;.. 2.12.2 &#8594; 2.12.4 - com.fasterxml.jackson.dataformat:jackson-dataformat-yaml &#8230;&#8203;&#8230;&#8203;. 2.12.2 &#8594; 2.12.4 - com.fasterxml.jackson.module:jackson-module-jaxb-annotations &#8230;&#8203; 2.12.2 &#8594; 2.12.4 - com.fasterxml.woodstox:woodstox-core &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 6.2.4 &#8594; 6.2.6 - commons-io:commons-io &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 2.8.0 &#8594; 2.11.0 - net.javacrumbs.json-unit:json-unit &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 2.24.0 &#8594; 2.25.0 - net.javacrumbs.json-unit:json-unit &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 2.25.0 &#8594; 2.27.0 - org.apache.activemq:activemq-broker &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 5.16.1 &#8594; 5.16.2 - org.apache.activemq:activemq-broker &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 5.16.2 &#8594; 5.16.3 - org.apache.commons:commons-compress &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 1.20 &#8594; 1.21 - org.apache.commons:commons-csv &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 1.8 &#8594; 1.9.0 - org.apache.commons:commons-dbcp2 &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 2.8.0 &#8594; 2.9.0 - org.apache.commons:commons-pool2 &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 2.9.0 &#8594; 2.11.1 - org.apache.maven.plugins:maven-failsafe-plugin &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 2.22.2 &#8594; 3.0.0-M5 - org.apache.maven.plugins:maven-surefire-plugin &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 2.22.2 &#8594; 3.0.0-M5 - org.apache.rat:apache-rat-plugin &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 0.12 &#8594; 0.13 - org.assertj:assertj-core &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 3.19.0 &#8594; 3.20.2 - org.codehaus.groovy:groovy-dateutil &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 3.0.7 &#8594; 3.0.8 - org.codehaus.groovy:groovy-jsr223 &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 3.0.7 &#8594; 3.0.8 - org.codehaus.plexus:plexus-utils &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 3.3.0 &#8594; 3.4.0 - org.eclipse.persistence:javax.persistence &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 2.1.1 &#8594; 2.2.1 - org.eclipse.persistence:org.eclipse.persistence.jpa &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 2.6.5 &#8594; 2.6.9 - org.eclipse.persistence:org.eclipse.persistence.jpa &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 2.7.8 &#8594; 2.7.9 - org.fusesource.jansi &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 2.3.2 &#8594; 2.3.4 - org.fusesource.jansi:jansi &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 2.3.1 &#8594; 2.3.2 - org.hsqldb:hsqldb &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 2.5.1 &#8594; 2.5.2 - org.junit.jupiter:junit-jupiter-engine &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 5.7.1 &#8594; 5.7.2 - org.junit.jupiter:junit-jupiter-migrationsupport &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 5.7.1 &#8594; 5.7.2 - org.junit.jupiter:junit-jupiter-params &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 5.7.1 &#8594; 5.7.2 - org.junit.vintage:junit-vintage-engine &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 5.7.1 &#8594; 5.7.2 - org.liquibase:liquibase-core &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 3.5.3 &#8594; 3.5.5 - org.mockito:mockito-core &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 3.8.0 &#8594; 3.11.2 - org.mockito:mockito-junit-jupiter &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 3.8.0 &#8594; 3.11.2 - org.springframework:spring-aop &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 5.3.3 &#8594; 5.3.9 - org.springframework:spring-beans &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 5.3.3 &#8594; 5.3.9 - org.springframework:spring-context &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 5.3.3 &#8594; 5.3.9 - org.springframework:spring-context-support &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 5.3.3 &#8594; 5.3.9 - org.springframework:spring-core &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 5.3.3 &#8594; 5.3.9 - org.springframework:spring-expression &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 5.3.3 &#8594; 5.3.9 - org.springframework:spring-oxm &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 5.3.3 &#8594; 5.3.9 - org.springframework:spring-test &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;.. 5.3.3 &#8594; 5.3.9 - org.springframework:spring-web &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 5.3.3 &#8594; 5.3.9 - org.springframework:spring-webmvc &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203; 5.3.3 &#8594; 5.3.9 - org.tukaani:xz &#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;&#8230;&#8203;. 1.8 &#8594; 1.9</p>
</li>
</ul>
</div>
</div>
<div class="sect2">
<h3 id="release-notes-2-15-0-fixed">Fixed</h3>
<div class="ulist">
<ul>
<li>
<p>LoggerContext skips resolving localhost when hostName is configured. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2808">LOG4J2-2808</a>)</p>
</li>
<li>
<p>Handle Disruptor event translation exceptions. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2816">LOG4J2-2816</a>)</p>
</li>
<li>
<p>SocketAppender should propagate failures when reconnection fails. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2829">LOG4J2-2829</a>)</p>
</li>
<li>
<p>Slf4j implementations walk the stack at most once rather than twice to determine the caller&#8217;s class loader. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2940">LOG4J2-2940</a>)</p>
</li>
<li>
<p>Fixed a deadlock between the AsyncLoggerContextSelector and java.util.logging.LogManager by updating Disruptor to 3.4.4. (<a href="https://issues.apache.org/jira/browse/LOG4J2-2965">LOG4J2-2965</a>)</p>
</li>
<li>
<p>BasicContextSelector hasContext and shutdown take the default context into account (<a href="https://issues.apache.org/jira/browse/LOG4J2-3054">LOG4J2-3054</a>)</p>
</li>
<li>
<p>Fix thread-safety issues in DefaultErrorHandler. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3060">LOG4J2-3060</a>)</p>
</li>
<li>
<p>Ensure EncodingPatternConverter#handlesThrowable is implemented. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3070">LOG4J2-3070</a>)</p>
</li>
<li>
<p>Fix formatting of nanoseconds in JsonTemplateLayout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3075">LOG4J2-3075</a>)</p>
</li>
<li>
<p>Use SimpleMessage in Log4j 1 Category whenever possible. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3080">LOG4J2-3080</a>)</p>
</li>
<li>
<p>log4j-slf4j-impl and log4j-slf4j18-impl correctly detect the calling class using both LoggerFactory.getLogger methods as well as LoggerFactory.getILoggerFactory().getLogger. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3083">LOG4J2-3083</a>)</p>
</li>
<li>
<p>Fix race in JsonTemplateLayout where a timestamp could end up unquoted. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3087">LOG4J2-3087</a>)</p>
</li>
<li>
<p>Fix sporadic JsonTemplateLayoutNullEventDelimiterTest failures on Windows. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3089">LOG4J2-3089</a>)</p>
</li>
<li>
<p>Fix JsonWriter memory leaks due to retained excessive buffer growth. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3092">LOG4J2-3092</a>)</p>
</li>
<li>
<p>Category.setLevel should accept null value. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3095">LOG4J2-3095</a>)</p>
</li>
<li>
<p>Fix a regression in 2.14.1 which allowed the AsyncAppender background thread to keep the JVM alive because the daemon flag was not set. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3102">LOG4J2-3102</a>)</p>
</li>
<li>
<p>Fix race condition which can result in ConcurrentModificationException on context.stop. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3103">LOG4J2-3103</a>)</p>
</li>
<li>
<p>SmtpManager.createManagerName ignores port. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3107">LOG4J2-3107</a>)</p>
</li>
<li>
<p>Fix the number of {}-placeholders in the string literal argument does not match the number of other arguments to the logging call. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3110">LOG4J2-3110</a>)</p>
</li>
<li>
<p>Enable immediate flush on RollingFileAppender when buffered i/o is not enabled. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3114">LOG4J2-3114</a>)</p>
</li>
<li>
<p>log4j2 config modified at run-time may trigger incomplete MBean re-initialization due to InstanceAlreadyExistsException. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3121">LOG4J2-3121</a>)</p>
</li>
<li>
<p>log4j-1.2-api implements LogEventAdapter.getTimestamp() based on the original event timestamp instead of returning zero. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3142">LOG4J2-3142</a>)</p>
</li>
<li>
<p>RandomAccessFile appender uses the correct default buffer size of 256 kB rather than the default appender buffer size of 8 kB. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3150">LOG4J2-3150</a>)</p>
</li>
<li>
<p>DatePatternConverter performance is not impacted by microsecond-precision clocks when such precision isn&#8217;t required. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3153">LOG4J2-3153</a>)</p>
</li>
<li>
<p>Fixed an unlikely race condition in Log4jMarker.getParents() volatile access. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3159">LOG4J2-3159</a>)</p>
</li>
<li>
<p>Fix documentation on how to toggle log4j2.debug system property. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3160">LOG4J2-3160</a>)</p>
</li>
<li>
<p>Fix bug when file names contain regex characters. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3168">LOG4J2-3168</a>)</p>
</li>
<li>
<p>Buffer immutable log events in the SmtpManager. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3172">LOG4J2-3172</a>)</p>
</li>
<li>
<p>Wrong subject on mail when it depends on the LogEvent (<a href="https://issues.apache.org/jira/browse/LOG4J2-3174">LOG4J2-3174</a>)</p>
</li>
<li>
<p>Avoid KafkaManager override when topics differ. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3175">LOG4J2-3175</a>)</p>
</li>
<li>
<p>Avoid using MutableInstant of the event as a cache key in JsonTemplateLayout. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3183">LOG4J2-3183</a>)</p>
</li>
<li>
<p>Fix thread-safety issues in DefaultErrorHandler. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3185">LOG4J2-3185</a>)</p>
</li>
<li>
<p>Limit the protocols JNDI can use by default. Limit the servers and classes that can be accessed via LDAP. (<a href="https://issues.apache.org/jira/browse/LOG4J2-3201">LOG4J2-3201</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>