Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cater to legacy handlers #449

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented Nov 28, 2023

Legacy handlers (more accurately, handlers with legacy formatters) do not know how to properly format printf-style messages. When we publish such records, we should apply a simplified formatting so that things like Gradle which unconditionally capture JUL output using an old handler will produce some kind of reasonable output.

Relates to quarkusio/quarkus#22844.

@dmlloyd
Copy link
Member Author

dmlloyd commented Nov 28, 2023

One thing I did not do was extend the test to see if the formatter of the handler is a "legacy" formatter. I think I'll update this with that fix as well. (Edit: done)

@jamezp
Copy link
Member

jamezp commented Nov 28, 2023

This makes sense to me.

@jamezp jamezp merged commit d852546 into jboss-logging:main Nov 28, 2023
3 checks passed
@dmlloyd dmlloyd deleted the legacy-handlers branch November 28, 2023 16:22
dmlloyd added a commit to dmlloyd/jboss-logmanager that referenced this pull request Nov 29, 2023
Follow up on jboss-logging#449 to apply the same treatment to sub-handlers of a handler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants