member sound created LOG4J2-1378:
------------------------------------

             Summary: WebLookup fails with log4j-web dependency
                 Key: LOG4J2-1378
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1378
             Project: Log4j 2
          Issue Type: Bug
         Environment: Java 1.8
            Reporter: member sound


I'm using the log4j-web dependency for proper (de)-registration of the log4j2 
logger in a tomcat environment:

<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-web</artifactId>
</dependency>

Problem: then I cannot use WebLookup anymore as follows:

<RollingRandomAccessFile name="TEST" 
fileName="${web:rootDir}-${web:majorVersion}-application.log" ..>

When I exclude the log4j-web dependency, the weblookup works fine. But I have 
to use the dependency for proper tomcat logging.

Probably the lookup is initialized too late. 

Bug report as requested in: 
http://stackoverflow.com/questions/36998917/how-to-use-weblookup-with-log4j-web



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to