Annotation Interface LogSlow


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface LogSlow
Override the global slow-call threshold for a specific method/class.

When elapsed time exceeds thresholdMs() the aspect logs at WARN. Below the threshold the usual INFO log line is emitted.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Threshold in milliseconds.
  • Element Details

    • thresholdMs

      long thresholdMs
      Threshold in milliseconds.
      Default:
      500L