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

Custom Log4j threads should extend Log4jThread

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7
    • Core, Flume Appender
    • None

    Description

      Custom Log4j threads should extend org.apache.logging.log4j.core.util.Log4jThread instead of java.lang.Thread to allow Log4jThread to prefix thread names with "Log4j2-", thus making Log4j threads easier to identify in thread dumps and debuggers.

      This patch applies to:

      • org.apache.logging.log4j.core.appender.AsyncAppender.AsyncThread
      • org.apache.logging.log4j.flume.appender.FlumePersistentManager.WriterThread
      • org.apache.logging.log4j.core.net.TcpSocketManager.Reconnector
      • org.apache.logging.log4j.core.net.server.TcpSocketServer.SocketHandler

      Attachments

        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:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment