logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mak, Howard" <h...@vaultus.com>
Subject parent logger to filter child logger by level
Date Mon, 17 Dec 2007 19:05:40 GMT
I'm trying to duplicate WARN logs to a separate file by using the below log4j.properties.

        log4j.rootLogger       = WARN, <appender_1>
        log4j.logger.MYLOG     = ALL, <appender_2>
        log4j.additivity.MYLOG = true

However, appender_1 contains more stuff than I want.

Am I wrong to expect that rootlogger will filter out all logs other thatn MYLOG @ <WARN>
or <ERROR>?  Am I confusing level inheritance down to children loggers vs. filter of
children logs by parent loggers?  Is the latter not supported by Log4j?

I'm using version 1.2.15.

Thanks for any help.

- Howard

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

View raw message