logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Smith <paul.sm...@lawlex.com.au>
Subject Re: Log4j: appender specific logging levels?
Date Sun, 29 Feb 2004 22:22:47 GMT

> It would seem that the most intuitive way to configure this would be to
> configure two different appenders for the Root logger, with each
> appender
> having its own message priority level and layout.  However, as I
> understand
> it the priority level can only be set by logger, not appender.
> Any suggestions on how to satisfy the above design goals?

If you use the XML configuration file, you can define a Filter which
filters by level.  You would then set the Logger's Level to ALL, and
specify the levels you want in each Appender you attach.

See the Wiki:


In particular the Log By Level one.


Paul Smith

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

View raw message