Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apache/logging-log4j2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: rel/2.25.1
Choose a base ref
...
head repository: apache/logging-log4j2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: rel/2.25.2
Choose a head ref
  • 18 commits
  • 48 files changed
  • 8 contributors

Commits on Sep 9, 2025

  1. Bump pom.xml version to 2.25.2

    vy committed Sep 9, 2025
    Configuration menu
    Copy the full SHA
    1357466 View commit details
    Browse the repository at this point in the history
  2. Fix missing default Target value in ConsoleAppender (#3852)

    Co-authored-by: Volkan Yazıcı <[email protected]>
    rschmitt and vy committed Sep 9, 2025
    Configuration menu
    Copy the full SHA
    c24d882 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a114248 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c568869 View commit details
    Browse the repository at this point in the history
  5. Round initialTime in RollingFileManager (#3872)

    Co-authored-by: Volkan Yazıcı <[email protected]>
    kelunik and vy committed Sep 9, 2025
    Configuration menu
    Copy the full SHA
    01d5226 View commit details
    Browse the repository at this point in the history
  6. Correct log message format in AbstractDriverManagerConnectionSource (

    …#3831)
    
    * Correct log message format in AbstractDriverManagerConnectionSource
    
    The debug log message in AbstractDriverManagerConnectionSource had 4 placeholders but was supplied with 5 arguments.
    This corrects the format string to match the argument count, resolving the warning.
    
    Fixes #3828
    
    * Add changelog entry
    jhl221123 authored and vy committed Sep 9, 2025
    Configuration menu
    Copy the full SHA
    4215b22 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7334375 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    84e0211 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3a57060 View commit details
    Browse the repository at this point in the history
  10. Prepare the changelog

    vy committed Sep 9, 2025
    Configuration menu
    Copy the full SHA
    5a71c91 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7268f03 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2025

  1. fix: make %ex behavior context-independent (#3919)

    Historically, throwable pattern converters (`%ex`, `%xEx`, etc.) behaved in a context-sensitive way:
    
    * If the **preceding formatter’s expansion** did not end with whitespace, the converter automatically inserted a space before rendering the exception.
    
    In version `2.25.0`, this was changed to insert a **newline** instead of a space, but the behavior was still dependent on surrounding context.
    
    #### What this change does
    
    This PR removes the context-dependent behavior altogether and makes `%ex` expansion fully predictable, while remaining backward-compatible:
    
    * When `%ex` is **added implicitly** because `alwaysWriteExceptions=true`:
    
      * If the pattern already ends with `%n`, a plain `%ex` is appended.
      * Otherwise, `%notEmpty{%n%ex}` is appended.
        This ensures exceptions are always clearly separated from the main log message by a newline, without adding extra characters when no exception is present.
    * When `%ex` is **explicitly included** in the pattern by the user:
    
      * Its expansion is rendered exactly as written in the pattern.
      * It will **never** prepend a newline on its own.
    
    #### Why
    
    * Eliminates confusing context-sensitive behavior.
    * Makes output consistent and predictable.
    * Preserves legacy expectations by only modifying implicitly added `%ex`.
    
    Closes #3873
    
    Co-authored-by: Volkan Yazıcı <[email protected]>
    ppkarwasz and vy committed Sep 18, 2025
    Configuration menu
    Copy the full SHA
    4ed5a1e View commit details
    Browse the repository at this point in the history
  2. doc: clarify %ex whitespace behavior across versions (#3918)

    This update documents the historical whitespace handling of the `%ex` pattern converter and how it has evolved in the `2.25.x` releases.
    
    Key point: since `2.25.2`, when users add `%ex` explicitly in their pattern, Log4j no longer inserts any automatic separator. It is now entirely up to the user to decide how (or whether) to separate the stack trace from the preceding output.
    
    Related to #3837
    
    Co-authored-by: Volkan Yazıcı <[email protected]>
    ppkarwasz and vy committed Sep 18, 2025
    Configuration menu
    Copy the full SHA
    427fa60 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94fc126 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    63e1812 View commit details
    Browse the repository at this point in the history
  5. Prepare the changelog

    vy committed Sep 18, 2025
    Configuration menu
    Copy the full SHA
    380b9f2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4822ede View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6923bd9 View commit details
    Browse the repository at this point in the history
Loading