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 "Liu, Mike" <ML...@sempra.com> on 2002/04/25 21:52:13 UTC

configure multiple level for single logger

Hi,

I am wondering if it is possible to configure multiple level for one logger?

For example,

log4j.logger.com.mycompany.mypackage=WARN, Appender1, Appender2
log4j.logger.com.mycompany,mypackage=DEBUG, Appender3, Appender4

Currently it appears that log4j only accepts one level, in fact the last
one.  
This, then, requires the developers to use different logger (or category)
for 
each level of logging in the code rather than configuring different appender

for different kinds of level.  As such, this might lead to more code
changes.

Just a suggestion.

Thanks,
Mike Liu