-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Harmonize Logback's console and file logging charset #46846
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
Conversation
I think so. Right now, |
Just to be on the same page, should At the moment,
|
I'd use That should align it with #44353 (comment) |
Aligns the file charset between Log4j2 and Logback. Prior to this commit, there was an inconsistency between the two: Log4j2 used UTF-8, while Logback used Charset.defaultCharset(), which is platform-dependent. Signed-off-by: Dmytro Nosan <[email protected]>
Thanks, @mhalbritter |
@snicoll |
Tests work for me because |
@nosan I was reviewing but feel free to push a fix, I'll wait |
Signed-off-by: Dmytro Nosan <[email protected]>
@snicoll |
This commit aligns the file charset between Log4j2 and Logback. Prior to this commit, there was an inconsistency between the two: Log4j2 used UTF-8, while Logback used Charset.defaultCharset(), which is platform-dependent. See gh-46846 Signed-off-by: Dmytro Nosan <[email protected]>
See #44472
I wonder if DefaultLogbackConfiguration.java should be updated to use UTF-8 as well. If so, perhaps
System.console().charset()
should be used as the default for the console.