Class AlhLoggingProperties
java.lang.Object
com.github.catomat0.aoploghelper.logging.AlhLoggingProperties
Configuration for the AOP logging aspect.
alh:
logging:
enabled: true
pointcut: "execution(* com..*Service*.*(..)) || execution(* com..*Controller*.*(..))"
log-args: true # 파라미터 로깅
log-result: false # 반환값 로깅 (payload 큰 경우 부하 주의)
slow-threshold-ms: 500 # 이 값 초과 시 WARN 으로 로깅
mask-keywords: # 민감정보 마스킹 대상 키워드 (부분 일치, 대소문자 무시)
- password
- passwd
- secret
- token
- accessToken
- refreshToken
- authorization
- apiKey
- creditCard
- ssn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanbooleanbooleanbooleanvoidsetEnabled(boolean enabled) voidsetLogArgs(boolean logArgs) voidsetLogResult(boolean logResult) voidsetMaskKeywords(List<String> maskKeywords) voidsetMaskPii(boolean maskPii) voidsetPointcut(String pointcut) voidsetSlowThresholdMs(long slowThresholdMs)
-
Constructor Details
-
AlhLoggingProperties
public AlhLoggingProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getPointcut
-
setPointcut
-
isLogArgs
public boolean isLogArgs() -
setLogArgs
public void setLogArgs(boolean logArgs) -
isLogResult
public boolean isLogResult() -
setLogResult
public void setLogResult(boolean logResult) -
getSlowThresholdMs
public long getSlowThresholdMs() -
setSlowThresholdMs
public void setSlowThresholdMs(long slowThresholdMs) -
getMaskKeywords
-
setMaskKeywords
-
isMaskPii
public boolean isMaskPii() -
setMaskPii
public void setMaskPii(boolean maskPii)
-