更新自述文件

This commit is contained in:
2024-11-23 08:54:10 +08:00
parent 942970336c
commit 214665ec91
2 changed files with 10 additions and 10 deletions

View File

@@ -62,12 +62,12 @@ int main() {
``` ```
### Logging filter ### Logging filter
> Support adding custom interceptors, currently with built-in substring interceptors > Support adding custom filters, currently with built-in substring filters
> The function of an filter is to redirect intercepted logs to the filter's dedicated processor > The function of an filter is to redirect filtered logs to the filter's dedicated processor
#### example #### example
Redirects intercepted logs to a dedicated file processor Redirects filtered logs to a dedicated file processor
```c ```c
#include "logging.h" #include "logging.h"
#include <stdio.h> #include <stdio.h>
@@ -106,7 +106,7 @@ int main() {
} }
``` ```
#### Multiple substring interceptors #### Multiple substring filters
```c ```c
#include "logging.h" #include "logging.h"
#include <stdbool.h> #include <stdbool.h>

View File

@@ -64,14 +64,14 @@ int main() {
} }
``` ```
### 日志拦截 ### 日志过滤
> 支持添加自定义的拦截器, 目前内置了子串拦截 > 支持添加自定义的过滤器, 目前内置了子串过滤
> 拦截器的作用:可以将拦截到的日志重定向到拦截器的专属处理器中 > 过滤器的作用:可以将过滤到的日志重定向到过滤器的专属处理器中
#### 单个子串拦截 #### 单个子串过滤
拦截到的日志重定向到专属文件处理器中 过滤到的日志重定向到专属处理器中
```c ```c
#include "logging.h" #include "logging.h"
#include <stdio.h> #include <stdio.h>
@@ -110,7 +110,7 @@ int main() {
} }
``` ```
#### 多个子串拦截 #### 多个子串过滤
```c ```c
#include "logging.h" #include "logging.h"
#include <stdbool.h> #include <stdbool.h>