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

Fix JavaDoc on org.apache.logging.log4j.ThreadContext (about inheritance)

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.8.1
    • 2.8.2
    • API

    Description

      The JavaDoc of org.apache.logging.log4j.ThreadContext describes the behavior regarding inheritance as follows:

      A child thread automatically inherits a copy of the mapped diagnostic context of its parent.

      But the behavior was changed in LOG4J2-479. Now the system property isThreadContextMapInheritable has to be set to true to enforce this behavior (see documentation). This should be corrected in the JavaDoc of ThreadContext.

      Attachments

        Activity

          People

            mattsicker Matt Sicker
            frvabe Franz van Betteraey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: