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
> 
> 
> > -----Original Message-----
> > From: Leon Pu [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 12, 2005 6:02 PM
> > To: Log4J Users List
> > Subject: RE: Configure two log4j loggers in one application
> > 
> > 
> > Hi Bender,
> > 
> > thank you for your reply.
> > 
> > I have two services in one application, and I want to save the logs
> of
> > two different services to different log files.
> > 
> > For the different output file name, I have defined them under
> certain
> > appender in xml configuration file. My question is how can I get
> the
> > instance of org.apache.log4j.Logger which uses the certain appender
> in
> > my xml configuration file?
> > 
> > 
> > Best regards,
> > Leon
> > 
> > --- Bender Heri <[EMAIL PROTECTED]> wrote:
> > 
> > > you can define as many loggers as you want within one
> configuration
> > > file / jvm.
> > > The same is true for appenders. And you are free to attach
> whatever
> > > appender to whatever logger. You even can attach the same 
> > appender to
> > > two or more different loggers. 
> > > Your last question ("get Logger by appender") I dont 
> > understand. What
> > > do you want achieve?
> > > 
> > > Heri
> > > 
> > > > -----Original Message-----
> > > > From: Leon Pu [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, December 12, 2005 5:45 PM
> > > > To: Log4J Users List
> > > > Subject: Re: Configure two log4j loggers in one application
> > > > 
> > > > 
> > > > Hi all,
> > > > 
> > > > could anybody give me hint to get Logger by appender?
> > > > 
> > > > 
> > > > Best regards,
> > > > Leon
> > > > 
> > > > --- Leon Pu <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > Hi all,
> > > > > 
> > > > > I have two log4j logger classes (own wrapper class to hide
> log4j
> > > for
> > > > > the customer class) in one application, and there are two xml
> > > > > configuration files for the two loggers.
> > > > > 
> > > > > But I found that some time only one logger works, another
> > > logger's
> > > > > log
> > > > > writes to another logger.
> > > > > 
> > > > > Since these two loggers are working in one JVM, is it mean
> that
> > > only
> > > > > one log4j logger is available in one JVM?
> > > > > 
> > > > > Is it possible to merge the two xml configuration files to
> one?
> > > But
> > > > > how
> > > > > can I get the certain appender which I want to output?
> > > > > 
> > > > > 
> > > > > Best regards,
> > > > > Leon
> > > > > 
> > > > > __________________________________________________
> > > > > 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]
> > > > > 
> > > > > 
> > > > 
> > > > 
> > > > __________________________________________________
> > > > 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]
> > > 
> > > 
> > 
> > 
> > __________________________________________________
> > 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]
> 
> 


__________________________________________________
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]

Reply via email to