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

Nepomuk Seiler commented on LOG4J2-256:
---------------------------------------

+1 Using a custom json layout would be awesome.

> 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
>         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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to