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

Injectable context properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.7
    • Core
    • None

    Description

      It would be useful to have a way to inject context properties into a LogEvent, as an alternative to ThreadContext.

      In an asynchronous environment, using ThreadContext as currently implemented is not so useful since JVM threads might not be coupled to the logical flow of the application.

      Attachments

        1. properties.patch
          9 kB
          Mikael Ståldal

        Issue Links

          Activity

            People

              rpopma Remko Popma
              mikaelstaldal Mikael Ståldal
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: