You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/07/31 07:00:00 UTC
[jira] [Commented] (LOG4J2-256) Support custom format using
patterns in SyslogLayout
[ https://issues.apache.org/jira/browse/LOG4J2-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17168448#comment-17168448 ]
Ralph Goers commented on LOG4J2-256:
------------------------------------
We have modified other layouts to format the "message" portion using a pattern. I see no reason this shouldn't be supported.
> Support custom format using patterns in SyslogLayout
> ----------------------------------------------------
>
> Key: LOG4J2-256
> URL: https://issues.apache.org/jira/browse/LOG4J2-256
> Project: Log4j 2
> Issue Type: Improvement
> Components: Layouts
> Affects Versions: 2.0-beta6
> Reporter: Tomek KaczyĆski
> Priority: Major
> Attachments: SyslogWrapLayout.java.patch
>
>
> It would be nice to be able to appy custom format to a message sent using SyslogLayout, user will be able to use PatternLayout/XMLLayout, etc... and format it as a syslog message (add syslog header ).
> so the usage would be :
> <SyslogWrapLayout facility="lpr">
> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %marker.%-5level %logger{2.} - %msg"/>
> </SyslogWrapLayout>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)