-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Comparing changes
Open a pull request
base repository: apache/logging-log4j2
base: rel/2.25.1
head repository: apache/logging-log4j2
compare: rel/2.25.2
- 18 commits
- 48 files changed
- 8 contributors
Commits on Sep 9, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 1357466 - Browse repository at this point
Copy the full SHA 1357466View commit details -
Fix missing default
Targetvalue inConsoleAppender(#3852)Co-authored-by: Volkan Yazıcı <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c24d882 - Browse repository at this point
Copy the full SHA c24d882View commit details -
Configuration menu - View commit details
-
Copy full SHA for a114248 - Browse repository at this point
Copy the full SHA a114248View commit details -
Configuration menu - View commit details
-
Copy full SHA for c568869 - Browse repository at this point
Copy the full SHA c568869View commit details -
Round
initialTimeinRollingFileManager(#3872)Co-authored-by: Volkan Yazıcı <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 01d5226 - Browse repository at this point
Copy the full SHA 01d5226View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 4215b22 - Browse repository at this point
Copy the full SHA 4215b22View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7334375 - Browse repository at this point
Copy the full SHA 7334375View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84e0211 - Browse repository at this point
Copy the full SHA 84e0211View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a57060 - Browse repository at this point
Copy the full SHA 3a57060View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a71c91 - Browse repository at this point
Copy the full SHA 5a71c91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7268f03 - Browse repository at this point
Copy the full SHA 7268f03View commit details
Commits on Sep 18, 2025
-
fix: make
%exbehavior 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]>Configuration menu - View commit details
-
Copy full SHA for 4ed5a1e - Browse repository at this point
Copy the full SHA 4ed5a1eView commit details -
doc: clarify
%exwhitespace 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]>
Configuration menu - View commit details
-
Copy full SHA for 427fa60 - Browse repository at this point
Copy the full SHA 427fa60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94fc126 - Browse repository at this point
Copy the full SHA 94fc126View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63e1812 - Browse repository at this point
Copy the full SHA 63e1812View commit details -
Configuration menu - View commit details
-
Copy full SHA for 380b9f2 - Browse repository at this point
Copy the full SHA 380b9f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4822ede - Browse repository at this point
Copy the full SHA 4822edeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6923bd9 - Browse repository at this point
Copy the full SHA 6923bd9View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff rel/2.25.1...rel/2.25.2