refactor(log): Log 注解新增 include、exclude 属性,用于扩展或减少日志包含信息

处理类上 Log 注解的日志包含信息 -> 处理方法上 Log 注解的日志包含信息
This commit is contained in:
2024-02-05 23:27:10 +08:00
parent 18b9d1ba79
commit 669ea85658
2 changed files with 58 additions and 9 deletions

View File

@@ -16,6 +16,8 @@
package top.charles7c.continew.starter.log.common.annotation;
import top.charles7c.continew.starter.log.common.enums.Include;
import java.lang.annotation.*;
/**
@@ -46,6 +48,16 @@ public @interface Log {
*/
String module() default "";
/**
* 包含信息(在全局配置基础上扩展包含信息)
*/
Include[] include() default {};
/**
* 排除信息(在全局配置基础上减少包含信息)
*/
Include[] exclude() default {};
/**
* 是否忽略日志记录(用于接口方法或类上)
*/