ca.grimoire.logging.annotations
Annotation Type LogBefore


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

Indicates a log message to emit before a method call. The value() field will be used as an slf4j logging format string, allowing method parameters 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 method call's arguments will be substituted into the template in order.

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.