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-1584) RFC5424 layout needs better delimiter specification between message and throwable
Date Thu, 15 Sep 2016 04:26:20 GMT

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

Gary Gregory commented on LOG4J2-1584:
--------------------------------------

Thank you for your report. Patches are welcome, adding unit test will speed up the process.

> RFC5424 layout needs better delimiter specification between message and throwable
> ---------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1584
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1584
>             Project: Log4j 2
>          Issue Type: Wish
>          Components: Layouts
>            Reporter: Charles Allen
>
> https://github.com/apache/logging-log4j2/blob/log4j-2.6.2/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/Rfc5424Layout.java#L343
> The RFC5424 Layout has a hard-coded Line Feed between the message and the throwable printing.
> This makes parsers have to be a bit smarter as far as delimiting messages based on newlines.
> As far as I can tell this behavior is not documented and is unavoidable.
> This ask is that there be more control over the delimiting between the throwable and
the message.



--
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


Mime
View raw message