Annotation Interface LogExecution


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface LogExecution
Force logging on a specific method/class regardless of the default pointcut.

Useful for methods that live outside the auto-scanned packages, or for turning logging back on inside a class that has been NoLog-ed.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Log arguments passed to the method.
    boolean
    Log the return value.
  • Element Details

    • logArgs

      boolean logArgs
      Log arguments passed to the method.
      Default:
      true
    • logResult

      boolean logResult
      Log the return value. Off by default to avoid dumping large payloads.
      Default:
      false