@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD, ElementType.METHOD})
public @interface LogIgnore {
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD, ElementType.METHOD})
public @interface LogIgnore {
}
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD})
public @interface LogMask {
LogMaskType value() default LogMaskType.SimpleMask;
}
public enum LogMaskType {
/**
* mask all chars
*/
FullMask('*'),
/**
* mask by LogUtils
*/
SimpleMask(LogUtils.MARK_CHAR);
private final char mask;
/**
* @param mask
*/
private LogMaskType(char mask) {
this.mask = mask;
}
public char getMask(){
return mask;
}
}