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]

Reply via email to