Annotation Type Log


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface Log
This annotation is applied to a method to define the log and exception details for the method.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The exception ID to be used.
    The logging Level (encoded as an enum) to use for the log record generated from the annotated method.
  • Element Details

    • level

      LogLevel level
      The logging Level (encoded as an enum) to use for the log record generated from the annotated method.
      Returns:
      The log level.
      Default:
      WARNING
    • id

      int id
      The exception ID to be used. This is used to construct the message ID in the log message.
      Returns:
      The exception id (which must include the VMCID).
      Default:
      0