Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-969

Refactor SyslogAppender so that Layout is a Plugin element

    XMLWordPrintableJSON

Details

    Description

      There are quite a lot of attributes to the syslogappender that could have been simply included as:

      @PluginElement("layout") Layout<? extends Serializable> layout,
      

      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.

      Attachments

        Issue Links

          Activity

            People

              ggregory Gary D. Gregory
              pdjohe Paul D Johe
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: