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

Log4j-web fails when used with anything that stores into the external context field

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.13.3
    • 2.14.0
    • Web/Servlet
    • None

    Description

      Log4j-web stores a reference to the servletcontext into the external context field of the LoggerContext. If another component, such as Spring Boot, stores into that same field then the servlet context reference will be lost. Support for a map of references was added in an earlier release to support Spring Boot. The servlet context should be stored into its own entry in the map rather than the single external context field.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rgoers Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: