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

Consider switching Logback's file logging charset to UTF-8 #44472

Open
mhalbritter opened this issue Feb 28, 2025 · 0 comments
Open

Consider switching Logback's file logging charset to UTF-8 #44472

mhalbritter opened this issue Feb 28, 2025 · 0 comments
Labels
type: enhancement A general enhancement
Milestone

Comments

@mhalbritter
Copy link
Contributor

mhalbritter commented Feb 28, 2025

Right now, Logback uses Charset.defaultCharset() for file logging. Log4j2 uses UTF-8. I think we should consider using UTF-8 for Logback, too. Charset.defaultCharset() is platform dependent, which could lead to confusing bugs. The Java team (with JEP 400) recognized this is a problem and fixed that in Java 18.

Read #44353 for more background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant