
Since logback will initialized only once, when the first web-app is loaded into memory. Thereafter, all logging will go to the same file. You must not share the logback jar by placing them on the web-container's lib directory. You should instead have each web-app carry its own copy of logback jars in WEB-INF./ib. Alternatively, you can use the JNDI repository selectors. However, wait for logback 0.9.12 and SLF4J 1.5.6 before delving into that. Jenny wrote:
Hi,
Given this scenario, will the logback configuration conflict with each other? How many LoggerContext instance is created?
- 3 different web applications hosted on 1 web container instance - Each web application has its own logback.xml, logging to different files. - logback jars (classic, core, sl4j) are shared by the 3 web app. Its located in the web container library folder.
thanks, Jenny
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch