@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
@Documented
public @interface Loggable
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
entered
Log method before its execution? (default: False)
|
java.lang.Class<? extends java.lang.Throwable>[] |
ignore
List of exceptions that this logger should not log its stack trace.
|
java.lang.String |
name
The logger name.
|
boolean |
skipArgs
Skip log method with its arguments? (default: False)
|
boolean |
skipResult
Skip log method with its results? (default: False)
|
org.springframework.boot.logging.LogLevel |
value
The log level
LogLevel. |
long |
warnOver
Should logger warn whenever method execution takes longer? (default: Forever)
|
java.util.concurrent.TimeUnit |
warnUnit
Time unit for the warnOver.
|
public abstract org.springframework.boot.logging.LogLevel value
LogLevel. (default: INFO)public abstract java.lang.String name
public abstract boolean entered
public abstract boolean skipResult
public abstract boolean skipArgs
public abstract java.lang.Class<? extends java.lang.Throwable>[] ignore