Annotation Type 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 args
      allow to skip args...
      boolean audit
      log current logged in user
      boolean duration
      Shall we track the duration from start to end
      String errorLogLevel
      NONE will disable error logs
      String logLevel  
      boolean result
      allow to skip results from log
      int trimLength
      Shall we trim long texts in order to make log lines more readable
      <= 0 means disable trimming
    • Element Detail

      • 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