Annotation Type Log


  • @InterceptorBinding
    @Documented
    @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    @Inherited
    public @interface Log
    An annotation applicable to methods and types for which you wish to trace the invocation of the method. Only DI managed bean are taken in charge by the processor of this annotation.

    With this annotation, for each invocation of a method two log records will be generated: one for the start of the method execution and the second for its end with as information at least the method's name and the user behind the invocation (if any).

    Author:
    mmoquillon
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String message
      A message to record into the log.
    • Element Detail

      • message

        String message
        A message to record into the log. If not set, a default message will be used from the class simple name and the invoked method name. It set, this message will be used and only one log record will be written before the method invocation (no log record after the invocation).
        Returns:
        a message to record or an empty string to use the default one.
        Default:
        ""