jhannes / logevents

An easy-to-extend implementation of SLF4J with batteries included and sensible defaults
Other
42 stars 8 forks source link

Replace LoggerDelegator threshold with a more generic filter #47

Closed jhannes closed 3 years ago

jhannes commented 3 years ago

43 #46

LoggerDelegator now support filtering on MDC and markers as well as level. This provides a much variation on Logback's concept of turbo-filtrers.

LogEventPredicates can be combined with all or any and be applied to a LoggerDelegator's LogEventGenerators at a specific level before creating a log event. LogEventPredicates can also be applied to AbstractFilteredLogEvent