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 Jan Pernica <ja...@pernica.org> on 2005/05/25 14:55:18 UTC

Comprehensive configuration question

Hello everybody

I have several appenders and I would like configure them for different 
error levels, like this:

log4j.logger.cz.me.ws.phv.PaymentUpdateServlet=DEBUG, A1, A2
log4j.logger.cz.me.ws.phv.PaymentUpdateServlet=ERROR, A3

But log4j takes only the last definnition. Please, do you have any hint 
how to do that?

Thank you

Jan Pernica



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: Comprehensive configuration question

Posted by Aron Bock <ar...@hotmail.com>.
>I have several appenders and I would like configure them for different 
>error levels, like this:
>
>log4j.logger.cz.me.ws.phv.PaymentUpdateServlet=DEBUG, A1, A2
>log4j.logger.cz.me.ws.phv.PaymentUpdateServlet=ERROR, A3
>
>But log4j takes only the last definnition. Please, do you have any hint how 
>to do that?

AFAIK one configures a logger -- not an appender -- for an error level.  You 
simply let all log messages go to the same destination, then use a tool such 
as Chainsaw to sift through them.  If you're insistent on having the same 
logger send log messages at different levels to different destinations ... 
you could probably use a log filter to direct traffic ( I haven't done it, 
so take this for what it's worth).  Look up log filters.

Regards,

--A

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org