Sorry, I not yet understand your problem.
Can you explain what do you mean by "service"?
Are they just two different classes? Or packages? Or what?
Annother question: At the moment, when you want to call a log function, does 
the context know which "service" it is running in? Are there different classes 
tight to the different services? (i.e. classes A, B, C are part of service #1 
and classes D, E, F are part of service #2). Or are there classes which are 
sometimes part of service #1 and sometimes part of service #2?
You have to explain more, or I cannot help you.

Heri


> -----Original Message-----
> From: Leon Pu [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 12, 2005 6:37 PM
> To: Log4J Users List
> Subject: RE: Configure two log4j loggers in one application
> 
> 
> I'm not sure whether these two services run in separate threads,
> because one service always invokes another one.
> 
> Leon
> 
> --- Bender Heri <[EMAIL PROTECTED]> wrote:
> 
> > I never had to deal with jar's in war's. Therefore I don't know what
> > you want to say with this.
> > My question was if the two services are running within separate
> > threads within the same JVM. If this is the case, the solution would
> > be to use a self written repository selector and MDC. The 
> MDC is kept
> > on a per thread basis where you can store informations to identify
> > your service. This information can then be used by the repository
> > selector to return different repositories and therefore different
> > logger instances although they are named equally. Simply said: you
> > can have a root logger for each of your services.
> > 
> > Heri
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Leon Pu [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, December 12, 2005 6:09 PM
> > > To: Log4J Users List
> > > Subject: RE: Configure two log4j loggers in one application
> > > 
> > > 
> > > Hi Heri,
> > > 
> > > they are in two sub projects, and will be compiled to two 
> jars. But
> > > will be deployed to one war.
> > > 
> > > 
> > > Best regards,
> > > Leon
> > > 
> > > --- Bender Heri <[EMAIL PROTECTED]> wrote:
> > > 
> > > > Do the two services run in different thread / 
> thread-hierarchies?
> > > > 
> > > > Heri
> > > > 
> > > > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to