[ https://issues.apache.org/jira/browse/LOG4J2-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865370#comment-13865370 ]
Remko Popma commented on LOG4J2-484: ------------------------------------ Giovanni, Sorry I have trouble understanding your question. When I unzip the attached file, I see the following directory structure: {code} MavenWeb | - pom.xml + src | + main | + resources + java | | | + net | | | + viralpatel | | | + maven | | | - HelloWorldServlet.java | - HelloWorldServletContextListener.java + webapp | - index.jsp + WEB-INF | - web.xml + classes | - log4j2.xml {code} Your question mentions these three files below, but I can't find these files: * /tmp/default_MavenWeb.xml * /tmp/log4j2.xml * /tmp/MavenWeb.xml A very similar file name is {{/tmp/default_MavenWeb.log}} which is the target log file defined in {{src/main/webapp/WEB-INF/classes/log4j2.xml}}. (But this is a .log file, not an .xml file). Are you saying that in {{HelloWorldServletContextListener}} you are trying to use log4j2 to do logging but this is not working? > log4j2 and ServletContextListeners > ---------------------------------- > > Key: LOG4J2-484 > URL: https://issues.apache.org/jira/browse/LOG4J2-484 > Project: Log4j 2 > Issue Type: Question > Components: Configurators > Affects Versions: 2.0-beta9 > Environment: java 1.7.0_11-b21, tomcat-7.0.14 > Reporter: Giovanni Mondo > Priority: Trivial > Labels: newbie > Fix For: 2.0-rc1 > > Attachments: MavenWeb.zip > > > Logging configuration is done by two config file: > WEB-INF/classes/log4j2.xml logging in /tmp/default_MavenWeb.xml > and > > /tmp/log4j2.xml as log4jConfiguration of a Log4jServletContextListener > logging in /tmp/MavenWeb.xml > > Is it possible to log HelloWorldServletContextListener in /tmp/MavenWeb.xml > as HelloWorldServlet does ? > A minimal maven project with full details can be found in attachment. -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org