Annotation Interface Loggable


@Retention(RUNTIME) @Target(METHOD) public @interface Loggable
this annotation is only working on spring proxied beans!
internal method call within the bean itself will not get logged - other bean calls will work
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    allow to skip args...
    boolean
    log current logged in user
    boolean
    Shall we track the duration from start to end
    NONE will disable error logs
     
    boolean
    allow to skip results from log
    int
    Shall we trim long texts in order to make log lines more readable
    <= 0 means disable trimming
  • Element Details

    • duration

      boolean duration
      Shall we track the duration from start to end
      Default:
      true
    • audit

      boolean audit
      log current logged in user
      Default:
      true
    • args

      boolean args
      allow to skip args...
      Default:
      true
    • result

      boolean result
      allow to skip results from log
      Default:
      false
    • logLevel

      String logLevel
      Default:
      "DEBUG"
    • errorLogLevel

      String errorLogLevel
      NONE will disable error logs
      Default:
      "WARN"
    • trimLength

      int trimLength
      Shall we trim long texts in order to make log lines more readable
      <= 0 means disable trimming
      Default:
      100