1.过滤器简介
官方文档
Logback-classic offers two types of filters, regular filters and turbo filters.
2.过滤器配置
2.1 日志级别过滤器
LevelFilter filters events based on exact level matching. If the event’s level is equal to the configured level, the filter accepts or denies the event, depending on the configuration of the onMatch and onMismatch properties. Here is a sample configuration file.
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">