[logback-user] LoggerContext instance - how many are created?

Jenny jenny_uy81 at yahoo.com
Fri Nov 21 16:06:48 CET 2008


Thanks Ceki! Logback is great. More power to the logback team!


--- On Fri, 11/21/08, Ceki Gulcu <listid at qos.ch> wrote:

> From: Ceki Gulcu <listid at qos.ch>
> Subject: Re: [logback-user] LoggerContext instance - how many are created?
> To: "logback users list" <logback-user at 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 at qos.ch
> http://qos.ch/mailman/listinfo/logback-user


      


More information about the Logback-user mailing list