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 id
      The exception ID to be used.
      LogLevel level
      The logging Level (encoded as an enum) to use for the log record generated from the annotated method.
    • Element Detail

      • 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:
        org.glassfish.pfl.basic.logex.LogLevel.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