当前位置:网站首页>Introduction to evaluatorfilter
Introduction to evaluatorfilter
2022-07-28 09:58:00 【qq_ twenty-five million seventy-three thousand two hundred and 】
from :
The following is about EvaluatorFilter Introduction to , As shown below :
EvaluatorFilter: It's the evaluation filter Then evaluate 、 Identify whether the log meets the specified conditions EvaluatorFilter attribute
<evaluator>: Discriminator , The common discriminator is JaninoEventEvaluato, It's also the default discriminator
It takes arbitrary java Boolean expression as evaluation condition
The evaluation condition was interpreted in the configuration file and was compiled dynamically , Boolean expression returns true It means that the filtering conditions are met
evaluator There are sub tags <expression>: Used to configure evaluation conditions
<onMatch>: It is used to configure the operations that meet the filtering conditions
<onMismatch>: Used to configure operations that do not meet the filter criteria
example
// Filter out all log messages that do not contain “billing” Log of string
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
<evaluator> <!-- The default is ch.qos.logback.classic.boolex.JaninoEventEvaluator -->
<expression>return message.contains("billing");</expression>
</evaluator>
<OnMatch>ACCEPT </OnMatch>
<OnMismatch>DENY</OnMismatch>
</filter>
<encoder>
<pattern>
%-4relative [%thread] %-5level %logger - %msg%n
</pattern>
</encoder>
</appender> 边栏推荐
猜你喜欢

Translation recommendation | debugging bookkeeper protocol - unbounded ledger

时序分析41 - 时序预测 TBATS模型

C countdown tool

Time series analysis 41 - time series prediction tbats model

Machine learning (10) -- hypothesis testing and regression analysis

Standing on the shoulders of big men, you can see further

Introduction to SD card (based on spec3.0)

超级原始人系列盲盒即将上线,PlatoFarm赋能超多权益
![[ESP32][esp-idf][LVGL7.9] 使用oled iic编译失败](/img/16/e5aa43df6ef9bdbc173fa547c85559.png)
[ESP32][esp-idf][LVGL7.9] 使用oled iic编译失败

Can multithreading optimize program performance?
随机推荐
判断字符串是不是回文
学个锤子 | .Net零基础逆向教程 第三课(壳与作业)
Leetcode - hashtable topic
With such a simple verification, 80% of programmers can't do it, let alone understand it!
Real time editor of MATLAB
Standing on the shoulders of big men, you can see further
Arouter source code analysis (III)
[ESP32][esp-idf] esp32s3快速搭建LVGLV7.9
Read Plato farm's eplato and the reason for its high premium
EvaluatorFilter简介说明
In hot weather, the line of defense for safe production was strengthened, and Guangzhou Haizhu District carried out emergency drills for gas stations
The victory of Dao community, tiger Dao VC wins in governance and consensus
7.27 最小生成树阶段性测试题解
Translation recommendation | debugging bookkeeper protocol - unbounded ledger
SizeBasedTriggeringPolicy简介说明
数据库高级学习笔记--存储结构
Install lamp under deepin
Seeing clearly is more important than walking fast, because you can go far only when you walk right
New features of ES6
手机号,固话正则表达式