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 "Ralph Goers (JIRA)" <ji...@apache.org> on 2013/06/10 23:10:21 UTC

[jira] [Updated] (LOG4J2-256) Support custom format using patterns to SyslogLayout

     [ https://issues.apache.org/jira/browse/LOG4J2-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4J2-256:
-------------------------------

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



  was:

 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>



        Summary: Support custom format using patterns to SyslogLayout  (was: SyslogWrapAppender - embed layout format in SyslogLayout)
    
> Support custom format using patterns to 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 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