Skip to content

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Sep 7, 2025

This update documents the historical whitespace handling of the exception stack trace pattern converter (%ex) 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.

This PR requires #3919 and relates to #3873.

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
@ppkarwasz ppkarwasz merged commit 7209b27 into 2.x Sep 12, 2025
9 checks passed
@ppkarwasz ppkarwasz deleted the doc/throwable-converter branch September 12, 2025 11:21
@github-project-automation github-project-automation bot moved this from To triage to Done in Log4j bug tracker Sep 12, 2025
vy added a commit that referenced this pull request Sep 18, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants