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

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

    Details

    • Type: Documentation
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.8.1
    • Fix Version/s: 2.8.2
    • Component/s: API
    • Labels:

      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

            • Assignee:
              jvz Matt Sicker
              Reporter:
              frvabe Franz van Betteraey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: