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

Add a Builder for the SocketAppender (deprecates factory method)

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7
    • Component/s: Appenders
    • Labels:
      None

      Description

      Add a Builder for the SocketAppender and deprecate the factory method.

      I need to add parameters for bufferedIo and bufferSize to the SocketAppender and the SyslogAppender as I am embarking on a project that will use Syslog events in large quantities. Then I'd like to also add these to other streaming appenders. I'll create a different ticket for these.

      Deprecated:

      • org.apache.logging.log4j.core.appender.SocketAppender.createAppender(String, int, Protocol, SslConfiguration, int, int, boolean, String, boolean, boolean, Layout<? extends Serializable>, Filter, boolean, Configuration)
      • org.apache.logging.log4j.core.appender.SocketAppender.createAppender(String, String, String, SslConfiguration, int, String, String, String, String, String, Layout<? extends Serializable>, Filter, String, Configuration)

      When should we deprecate these?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                garydgregory Gary Gregory
                Reporter:
                garydgregory Gary Gregory
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: