logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: Should the Appender have a level filter?
Date Tue, 15 Mar 2016 20:13:40 GMT
You can apply filters to appenders and loggers. There are actually four
different places you can apply a filter to described here:

On 15 March 2016 at 15:08, Robin Coe <rcoe.javadev@gmail.com> wrote:

> The current situation for filtering on log level is controlled by the
> LoggerConfig but I'm wondering if that's enough?  I'm wondering if it
> wouldn't be preferable to associate the log level filter at the appender,
> instead/additionally?  I realize this is a major change but since a logger
> is a one-to-many relationship to appenders, does it make more sense to
> control whether to append an event at the most granular location, where the
> event actually leaves the system?
> I realize the log level cannot be removed from the logger (the
> documentation change alone...) but would it make sense to allow an override
> at the appender?
> Thanks,
> Robin.

Matt Sicker <boards@gmail.com>

View raw message