On Thu, 14 Feb 2002, Paulo Gaspar wrote:

> What about multiple logging hierarchies?

I think the best solution is to add an explicit 'guard' or 'domain' to the 
API. 

We don't have to do it now - but we must make sure it is clear that 
getInstance() _should_ return a local logger in a container env - 
so 2 different applications using the same name for a logger will
not get mixed up. 

Using the thread class loader as the default 'domain' ( in case 
getInstance( name ) is called ) is reasonable, given that most 
containers will use that, and that the factory/logger discovery
is dependent on the class loader.

In a future version ( or in this one ? ) we can add the explicit
getInstance( Object domain, String name ), and different apps will
be able to share a Log ( assuming they have access to a common 
guard object ).

Costin


> 
> Have fun,
> Paulo Gaspar
> 
> > -----Original Message-----
> > From: Jon Scott Stevens [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 13, 2002 11:40 PM
> > To: Jakarta Commons Developers List
> > Subject: Re: cvs
> > commit:jakarta-commons/logging/src/java/org/apache/commons/logging/implL
> > ogFactoryImpl.java
> > 
> > 
> > on 2/13/02 1:52 PM, "Jon Scott Stevens" <[EMAIL PROTECTED]> wrote:
> > 
> > >   public Log getInstance(String foo)
> > 
> > Sorry, that should be:
> > 
> > public static Log getInstance(String foo)
> > 
> > But you get my point...
> > 
> > -jon
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to