更新自述文件 (#18)
* #feat 增强Fatal级别的底色,修改logging类的方法 * 更新版本号 * 加入test脚本 * fix:conanfile * test action * 修复错别字 * add test on windows action * fix test on windows action * fix action on windows * fix * fix 内存分配错误 * fix msvc 不支持中文注释,删除中文注释 * test on windows and test chinese char * ersion 0.2.4 * feature:根据文件大小分割日志 * fix:内存泄露 * fix:使用char偏移单位 * add english brief * 修改api函数名,加入Default关键字,减除歧义 * Multiple substring interceptors * 更新版本号 * #fix 拦截器对level参数无效 * fix * #将拦截器改名为过滤器,更加接近职能 * 更新自述文件
This commit is contained in:
@@ -62,12 +62,12 @@ int main() {
|
||||
```
|
||||
|
||||
### Logging filter
|
||||
> Support adding custom interceptors, currently with built-in substring interceptors
|
||||
> The function of an filter is to redirect intercepted logs to the filter's dedicated processor
|
||||
> Support adding custom filters, currently with built-in substring filters
|
||||
> The function of an filter is to redirect filtered logs to the filter's dedicated processor
|
||||
|
||||
|
||||
#### example
|
||||
Redirects intercepted logs to a dedicated file processor
|
||||
Redirects filtered logs to a dedicated file processor
|
||||
```c
|
||||
#include "logging.h"
|
||||
#include <stdio.h>
|
||||
@@ -106,7 +106,7 @@ int main() {
|
||||
}
|
||||
```
|
||||
|
||||
#### Multiple substring interceptors
|
||||
#### Multiple substring filters
|
||||
```c
|
||||
#include "logging.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
Reference in New Issue
Block a user