
Thanks Ceki! Logback is great. More power to the logback team! --- On Fri, 11/21/08, Ceki Gulcu <listid@qos.ch> wrote:
From: Ceki Gulcu <listid@qos.ch> Subject: Re: [logback-user] LoggerContext instance - how many are created? To: "logback users list" <logback-user@qos.ch> Date: Friday, November 21, 2008, 6:52 PM 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 _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user