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

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

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: