Class AlhLoggingProperties

java.lang.Object
com.github.catomat0.aoploghelper.logging.AlhLoggingProperties

@ConfigurationProperties(prefix="alh.logging") public class AlhLoggingProperties extends Object
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 Details

    • AlhLoggingProperties

      public AlhLoggingProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getPointcut

      public String getPointcut()
    • setPointcut

      public void setPointcut(String pointcut)
    • 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

      public List<String> getMaskKeywords()
    • setMaskKeywords

      public void setMaskKeywords(List<String> maskKeywords)
    • isMaskPii

      public boolean isMaskPii()
    • setMaskPii

      public void setMaskPii(boolean maskPii)