////
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

         https://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
////

[#release-notes-2-25-5]
== 2.25.5

Release date:: 2026-07-01

This patch release delivers certain fixes on top of `2.25.4`


[#release-notes-2-25-5-changed]
=== Changed

* Improve logging for `LinkageError` scenarios involving the LMAX Disruptor library (https://github.com/apache/logging-log4j2/issues/2250[2250], https://github.com/apache/logging-log4j2/pull/4124[4124])

[#release-notes-2-25-5-fixed]
=== Fixed

* Fix the `createOnDemand` behavior of `RollingFileAppender` to correctly defer file and directory creation until the first log event, while preserving eager creation when disabled. (https://github.com/apache/logging-log4j2/issues/2006[2006], https://github.com/apache/logging-log4j2/pull/4072[4072])
* Improve documentation for locale handling in the Pattern Layout date pattern converter (https://github.com/apache/logging-log4j2/issues/4129[4129], https://github.com/apache/logging-log4j2/pull/4130[4130])
* Fix handling of non-finite numbers while encoding `MapMessage` to JSON (https://github.com/apache/logging-log4j2/pull/4163[4163])
* Fix encoding of `MSGID` and `SD-ID` fields of `StructuredDataMessage` to XML (https://github.com/apache/logging-log4j2/pull/4136[4136])
* Fix stack trace rendering for exceptions with identity malfunction (e.g., colliding `equals()` and/or `hashCode()` implementations) (https://github.com/apache/logging-log4j2/issues/3933[3933], https://github.com/apache/logging-log4j2/pull/4133[4133])
* Fix resource leaks in `ConfigurationSource` when loading configuration via URL fails (https://github.com/apache/logging-log4j2/pull/4127[4127])
* Fix `KafkaAppender` reporting error to error handler even after a successful retry (https://github.com/apache/logging-log4j2/pull/4125[4125])
