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

Log4j-web is unable to locate the servlet context in Spring Boot.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.12.1
    • 2.13.0
    • None
    • None

    Description

      WebLoggerContextUtils is expecting that the LoggerContext's external context field will point to the servlet context. Unfortunately, Spring Boot uses that field as a flag to indicate that logging has initialized. Log4j 2.13.0 added a Map so that multiple fields could be stored. Log4j-web should be modified to store the servlet context in its own key.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: