Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
2.8
-
None
-
None
Description
Switching to the latest release I've immediately got the following error:
Unable to inject fields into builder class for plugin type class org.apache.logging.log4j.core.appender.ConsoleAppender, element Consol e. java.nio.charset.UnsupportedCharsetException: sun.stdout.encoding
In the PropertiesUtil I see the following:
public Charset getCharsetProperty(final String name, final Charset defaultValue) { final String prop = getStringProperty(name); return prop == null ? defaultValue : Charset.forName(name); }
Shouldn't prop be used in Charset.forName(name) instead of name?
Attachments
Issue Links
- is broken by
-
LOG4J2-1636 Console Appender does not pick up Oracle Java 8's sun.stdout.encoding and sun.stderr.encoding
- Resolved
- links to