Top Description Methods
org.glassfish.pfl.basic.logex

public @Interface Log

extends Annotation
Annotations
@Documented
@Target:METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

This annotation is applied to a method to define the log and exception details for the method.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The exception id (which must include the VMCID).
id
()

The exception ID to be used.

public LogLevel

Returns:

The log level.
level
()

The logging Level (encoded as an enum) to use for the log record generated from the annotated method.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

idback to summary
public int id()

The exception ID to be used. This is used to construct the message ID in the log message.

Returns:int

The exception id (which must include the VMCID).

levelback to summary
public LogLevel level()

The logging Level (encoded as an enum) to use for the log record generated from the annotated method.

Returns:LogLevel

The log level.