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

SimpleLogger creates unnecessary Map objects by calling ThreadContext.getContext() instead of getImmutableContext()

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • API
    • None

    Description

      SimpleLogger creates unnecessary Map objects by calling ThreadContext.getContext() instead of getImmutableContext() each time logMessage is called and 'show context map' is enabled.

      Reported on the ML by Mikael Ståldal.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment