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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: API
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              garydgregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: