You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/08 19:27:02 UTC

[jira] [Commented] (LOG4J2-969) Refactor SyslogAppender so that Layout is a Plugin element

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

ASF GitHub Bot commented on LOG4J2-969:
---------------------------------------

Github user garydgregory commented on the issue:

    https://github.com/apache/logging-log4j2/pull/46
  
    Sure, since https://issues.apache.org/jira/browse/LOG4J2-969 is closed.


> Refactor SyslogAppender so that Layout is a Plugin element 
> -----------------------------------------------------------
>
>                 Key: LOG4J2-969
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-969
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders, Layouts
>    Affects Versions: 2.2
>            Reporter: Paul D Johe
>            Assignee: Gary Gregory
>              Labels: syslog, syslogappender
>             Fix For: 2.8
>
>
> There are quite a lot of attributes to the syslogappender that could have been simply included as:
> {code}
> @PluginElement("layout") Layout<? extends Serializable> layout,
> {code}
> This is much more flexible (for example, extension of existing syslog layouts) and the field 'format' becomes superfluous, as it is implied by the layout chosen (normally SyslogLayout or Rfc5424Layout will be chosen).
> Furthermore, it becomes much clearer which attributes are for the RFC5424 format and which are for the BSD format.
> Or at least add the possibility for a Layout element, which if does not exist will use the existing code. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)