初始化
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package tech.easyflow.log.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* @author michael yang (fuhai999@gmail.com)
|
||||
*/
|
||||
@Inherited
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD})
|
||||
public @interface LogRecord {
|
||||
|
||||
String value();
|
||||
|
||||
String actionType() default "";
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package tech.easyflow.log.annotation;
|
||||
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 标记后,LogReporterDisabled 将跳过此方法或类的日志输出
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface LogReporterDisabled {
|
||||
}
|
||||
Reference in New Issue
Block a user