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

Log4j respects the configured "log4j2.is.webapp" property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: 2.10.0
    • Component/s: Core
    • Labels:
      None

      Description

      When running an application with an embedded servlet container, the configuration should be able to enable shutdown hook registration, and avoid the "Log4j appears to be running in a Servlet environment, but there's no log4j-web module" warning.

      Steps to reproduce:
      1. configure log4j2.is.webapp = false
      2. Start application with a dependency on the servlet-api
      3. "Log4j appears to be running in a Servlet environment, but there's no log4j-web module available." warning is logged

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mikaelstaldal Mikael Ståldal
                Reporter:
                ckozak Carter Kozak
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: