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

Add a Builder for the SocketAppender (deprecates factory method)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7
    • Appenders
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment