You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2015/06/02 23:09:50 UTC
[jira] [Comment Edited] (LOG4J2-1038) Incorrect documentation for
layout default charset
[ https://issues.apache.org/jira/browse/LOG4J2-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569765#comment-14569765 ]
Gary Gregory edited comment on LOG4J2-1038 at 6/2/15 9:09 PM:
--------------------------------------------------------------
Each layout is different. The root of layouts that use a charset is {{org.apache.logging.log4j.core.layout.AbstractStringLayout}} and the default there is UTF-8.
Each layout that extends {{org.apache.logging.log4j.core.layout.AbstractStringLayout}} can provide its own default.
I've added the following to the layouts page:
{code:xml}
<p>
The root class for layouts that use a Charset is <code>org.apache.logging.log4j.core.layout.AbstractStringLayout</code>
where the default there is UTF-8. Each layout that extends <code>org.apache.logging.log4j.core.layout.AbstractStringLayout</code>
can provide its own default. See each layout below.
</p>
{code}
Which specific layout are you talking about?
was (Author: garydgregory):
Each layout is different. The root of layouts that use a charset is {{org.apache.logging.log4j.core.layout.AbstractStringLayout}} and the default there is UTF-8.
Each layout that extends {{org.apache.logging.log4j.core.layout.AbstractStringLayout}} can provide its own default.
Which layout are you talking about?
> Incorrect documentation for layout default charset
> --------------------------------------------------
>
> Key: LOG4J2-1038
> URL: https://issues.apache.org/jira/browse/LOG4J2-1038
> Project: Log4j 2
> Issue Type: Bug
> Components: Documentation, Layouts
> Affects Versions: 2.1
> Reporter: Gili
>
> https://issues.apache.org/jira/browse/LOG4J2-255 states that the default charset is the system default (a fact I confirmed by running local tests). http://logging.apache.org/log4j/2.x/manual/layouts.html incorrectly states that the default charset is UTF-8.
> Please update the documentation to state that the default is the system default and strongly recommend (in bold) that the user sets an explicit charset.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org