[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slf4j-user
Subject:    Re: [slf4j-user] Per-web-app logging with jars on the	ser ver's
From:       Ceki =?iso-8859-1?Q?G=FClc=FC?= <listid () qos ! ch>
Date:       2007-03-21 20:32:20
Message-ID: 6.0.0.22.0.20070321212428.03dbe828 () mail ! qos ! ch
[Download RAW message or body]

Hi Mark,

I don't see how implementing o.a.c.logging.Log and LogFactory with log4j 
helps around this problem. How do you avoid keeping a map of JCL adapters 
wrapping log4j loggers? If you don't keep a map, how do you avoid building 
a new JCL adapter object each time the LogFactory.getFactory gets called?

Does the above make sense?

At 11:31 PM 3/20/2007, Mark Stralka wrote:

>Jake and Ceki,
>
>Thank you for all your help and diligence in addressing this issue.  I've 
>solved
>the problem, at least to my own satisfaction, by using
>-Dlog4j.repositorySelector=JNDI and implementing the
>org.apache.commons.logging.Log and LogFactory to use Log4j 
>directly.  Basically,
>I took JCL's impl.Log4JLogger (v1.1), cut out the Log4j 1.2-specific code and
>put in code that works with 1.3alpha8.  Log4j is already used in my 
>organization
>and we already have websites deployed with log4j.properties files, so 
>moving to
>Logback isn't possible now but I will follow its progress if you see it as the
>successor to Log4j.
>
>Thank you again
>Mark

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch

_______________________________________________
user mailing list
user@slf4j.org
http://www.slf4j.org/mailman/listinfo/user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic