ca.grimoire.logging.annotations
Annotation Type LogReturn


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

Indicates a log message to emit after a method call successfully returns. The value() field will be used as an slf4j logging format string, allowing the return value to be substituted in.

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

See Also:
MessageFormatter

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

Element Detail

value

public abstract String value
The log message template. The return value will be substituted in as the only formatting parameter.

Returns:
the log message template.

severity

public abstract Severity severity
The logging severity for the message.

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


Copyright © 2010 Grimoire Alchymia. All Rights Reserved.