|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.velocity.runtime.log.JdkLogChute
Implementation of a simple java.util.logging LogChute.
| Field Summary | |
static String |
DEFAULT_LOG_NAME
Default name for the JDK logger instance |
protected Logger |
logger
|
static String |
RUNTIME_LOG_JDK_LOGGER
Property key for specifying the name for the logger instance |
| Fields inherited from interface org.apache.velocity.runtime.log.LogChute |
DEBUG_ID, ERROR_ID, INFO_ID, TRACE_ID, WARN_ID |
| Constructor Summary | |
JdkLogChute()
|
|
| Method Summary | |
protected Level |
getJdkLevel(int level)
Returns the java.util.logging.Level that matches to the specified LogChute level. |
void |
init(RuntimeServices rs)
Initializes this LogChute. |
boolean |
isLevelEnabled(int level)
Checks whether the logger is enabled for the specified level |
void |
log(int level,
String message)
Logs messages |
void |
log(int level,
String message,
Throwable t)
Send a log message from Velocity along with an exception or error |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String RUNTIME_LOG_JDK_LOGGER
public static final String DEFAULT_LOG_NAME
protected Logger logger
| Constructor Detail |
public JdkLogChute()
| Method Detail |
public void init(RuntimeServices rs)
LogChute
init in interface LogChuteprotected Level getJdkLevel(int level)
public void log(int level,
String message)
log in interface LogChutelevel - severity levelmessage - complete error message
public void log(int level,
String message,
Throwable t)
log in interface LogChutepublic boolean isLevelEnabled(int level)
isLevelEnabled in interface LogChute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||