@Retention(value=RUNTIME) @Target(value={TYPE,METHOD,CONSTRUCTOR}) public @interface Log
Modifier and Type | Optional Element and Description |
---|---|
String |
argumentsTemplate
specifies template for logging arguments
by default it is ${args} which means all arguments are logged.
|
Log.Level |
enterLevel |
Log.Level |
exitLevel
WARNING: making exitLevel smaller than enterLevel can make the log hard to read.
|
boolean |
indent |
String |
mdcKey |
String |
mdcTemplate |
Log.Exceptions[] |
on |
String |
resultTemplate |
public abstract Log.Level enterLevel
Log.Level
to use on method enterpublic abstract Log.Level exitLevel
Log.Level
to use on successful method exit.public abstract Log.Exceptions[] on
Log.Exceptions
that defines how exit on different exceptions is logged. For each exception it is possible to specify by default all runtime exceptions print a stack trace, all checked exception do not print a stack trace.public abstract String argumentsTemplate
public abstract String resultTemplate
public abstract boolean indent
public abstract String mdcKey
public abstract String mdcTemplate
Copyright © 2013–2015 Yilativs. All rights reserved.