logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-263) RFC5424 Layout (and Syslog Layout) uses platform encoding when no charset is specified in configuration
Date Thu, 16 May 2013 23:55:16 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660165#comment-13660165
] 

Gary Gregory commented on LOG4J2-263:
-------------------------------------

In this spec https://tools.ietf.org/html/rfc5424, I read:

{quote}
   The character set used in STRUCTURED-DATA MUST be seven-bit ASCII in
   an eight-bit field as described in [RFC5234].  These are the ASCII
   codes as defined in "USA Standard Code for Information Interchange"
   [ANSI.X3-4.1968].  An exception is the PARAM-VALUE field (see
   Section 6.3.3), in which UTF-8 encoding MUST be used.
{quote}

So we should make the layout configurable, unless we want to allow users to shoot themselves
in the foot.
                
> RFC5424 Layout (and Syslog Layout) uses platform encoding when no charset is specified
in configuration
> -------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-263
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-263
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders, Core
>    Affects Versions: 2.0-beta6
>            Reporter: Remko Popma
>
> RFC5424 seems to require UTF-8 or US-ASCII as the character encoding.
> Should the 'charset' attribute be removed so that this is no longer configurable?
> Is there any specification for the Syslog format?
> See also discussion here: https://issues.apache.org/jira/browse/LOG4J2-255?focusedCommentId=13659559&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13659559

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message