org.glassfish.gmbal.logex
Annotation Type Log


@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Log

This annotation is applied to an interface or abstract class that is used to define methods for logging and/or constructing exceptions.


Optional Element Summary
 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.
 

level

public abstract 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.gmbal.logex.LogLevel.WARNING

id

public abstract 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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.