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

Injectable context properties

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment