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

Allow fine-grained control over which properties are passed to child threads.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3
    • None
    • Core
    • None

    Description

      http://jira.qos.ch/browse/LOGBACK-624 contains the following comment; "My suggestion is that the user should be able to plug in a callback object in the Logback config indicating which keys should be propagated to child threads. This could be PropagateAll (legacy behavior), PropagateNone, PropagateRegex. I would suggest that the default should become PropagateNone, for the reasons I describe above, but making it configurable would probably make everybody happy and prevent more people from forking Logback (as my company has done, privately)."

      Log4j current defaults the ThreadContextMap to use a regular ThreadLocal. If the user configures a property then an InheritableThreadLocal will be used. This proposal is to provide finer grained control over what properties are shared with child threads.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rgoers Ralph Goers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: