You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Leon Pu <le...@yahoo.com.cn> on 2005/12/12 07:06:35 UTC
Configure two log4j loggers in one application
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Configure two log4j loggers in one application
Posted by Leon Pu <le...@yahoo.com.cn>.
Hi all,
could anybody give me hint to get Logger by appender?
Best regards,
Leon
--- Leon Pu <le...@yahoo.com.cn> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org