It should work that way, but if your applications have any custom plugins they wouldn’t be accessible unless they are also on tomcat-lib. If you are using any Log4j 2 components with dependencies then those dependencies (and their transitive dependencies) would have to be in tomcat/lib as well. That can quickly get our of hand.
Ralph > On Mar 15, 2017, at 9:25 AM, agharta <aghart...@gmail.com> wrote: > > Hi all, > > I have a Tomcat 8 with 6-7 web applications, each one with its log4j libs > (log4j-core, log4j-api, log4j-web, log4j-1.2-api). > > Every app contains its log4j2.xml with its appenders (based on web lookup > ${web:contextPath}). > > > So, the question: could i put log4j libs (log4j-core, log4j-api, log4j-web, > log4j-1.2-api) inside tomcat/lib folder instead of every single web > application's lib folder? > > > And yes, i would to keep each log4j2.xml inside every web application..... > > > Thanks a lot, > > Agharta > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org