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

log4j2 and ServletContextListeners

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Trivial
    • Resolution: Not A Problem
    • 2.0-beta9
    • 2.0-rc1
    • Configurators
    • java 1.7.0_11-b21, tomcat-7.0.14

    Description

      Logging configuration is done by two config file:

      WEB-INF/classes/log4j2.xml logging in /tmp/default_MavenWeb.log

      and

      /tmp/final_log4j2.xml as log4jConfiguration of a Log4jServletContextListener logging in /tmp/MavenWeb.log

      Is it possible to log HelloWorldServletContextListener in /tmp/MavenWeb.log as HelloWorldServlet does ?

      A minimal maven project with full details can be found in attachment.

      Attachments

        1. MavenWeb3.zip
          5 kB
          Giovanni Mondo

        Activity

          People

            Unassigned Unassigned
            giogeo Giovanni Mondo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: