[JBoss-dev] Re: multiple components using log4j causes problems

2002-01-11 Thread Adrian Brock

Hi log4j-user,

I was pointed by Aron Kramlik to this mailing list.

I'm looking at implementing the RepositorySelector into JBoss.
I only found out about this class and 1.2 about 1 hour ago, so apologies
if my questions sound naive.
I've looked at the javadocs, I don't think this is in the manual yet:-)
I like the comment in the javadocs about JBoss/Tomcat, are
you making sure we are paying attention?

As far as I understand this, we implement RepositorySelector and
add this to the LogManager. Our RepositorySelector can then
use one repository inside the container and an application
configured one when we invoke its methods.
Is this correct?

We do something like:

jbossSelector.setContext(application.getRepository());
invokeApplicationMethod();
jbossSelector.setContext(jbossRepository);

Then we need to supply a means to configure application.getRepository()
which will probably be jbossRepository when not configured.
Do we need to provide a configuration mechanism or is there
another way?

Final question. I scanned the December/January mail archive but
didn't spot this.

1.2 when?

Regards,
Adrian



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Re: multiple components using log4j causes problems

2002-01-11 Thread Adrian Brock

Hi,

Does anybody have any comments on this?
The idea is to allow applications to different
log4j configurations to JBoss.

Assuming my analysis is correct.
We should be able to do this as an interceptor,
just before the relevant ContainerInterceptor.

But this means the ContainerInterceptors can't log
into the JBoss LoggerRepository.
It also means no hit for applications that don't
need it.

The hard part is getting rid of Category from the
codebase so we can use log4j 1.2 which is
alpha by the way :-(

Regards,
Adrian

> Hi log4j-user,
> 
> I was pointed by Aron Kramlik to this mailing list.
> 
> I'm looking at implementing the RepositorySelector
> into JBoss.
> I only found out about this class and 1.2 about 1
> hour ago, so apologies
> if my questions sound naive.
> I've looked at the javadocs, I don't think this is in
> the manual yet:-)
> I like the comment in the javadocs about
> JBoss/Tomcat, are
> you making sure we are paying attention?
> 
> As far as I understand this, we implement
> RepositorySelector and
> add this to the LogManager. Our RepositorySelector
> can then
> use one repository inside the container and an
> application
> configured one when we invoke its methods.
> Is this correct?
> 
> We do something like:
> 
> jbossSelector.setContext(application.getRepository());
> invokeApplicationMethod();
> jbossSelector.setContext(jbossRepository);
> 
> Then we need to supply a means to configure
> application.getRepository()
> which will probably be jbossRepository when not
> configured.
> Do we need to provide a configuration mechanism or is
> there
> another way?
> 
> Final question. I scanned the December/January mail
> archive but
> didn't spot this.
> 
> 1.2 when?
> 
> Regards,
> Adrian
> 
> 
> 
> __
> __
> MSN Photos is the easiest way to share and print your
> photos:
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-dev
> lopment


__
View this jboss-dev thread in the online forums:
http://jboss.org/forums/thread.jsp?forum=66&thread=6989

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development