ca.grimoire.logging.annotations
Annotation Type LogException


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface LogException

Indicates a log message to emit after a method call raises an exception. The value() field will be passed to the underlying log framework as-is, along with the exception.

By default, messages from this annotation will be logged at the Severity.ERROR severity. The severity can be set to any Severity.


Required Element Summary
 String value
          The log message.
 
Optional Element Summary
 Severity severity
          The logging severity for the message.
 

Element Detail

value

public abstract String value
The log message. No argument substitution will be applied to this message.

Returns:
the log message.

severity

public abstract Severity severity
The logging severity for the message.

Returns:
the log severity for the message.
Default:
ca.grimoire.logging.annotations.Severity.ERROR


Copyright © 2010 Grimoire Alchymia. All Rights Reserved.