You can apply filters to appenders and loggers. There are actually four different places you can apply a filter to described here: http://logging.apache.org/log4j/2.x/manual/filters.html
On 15 March 2016 at 15:08, Robin Coe <[email protected]> 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 <[email protected]>
