public class JdkLogChute extends Object implements LogChute
| Modifier and Type | Field and Description |
|---|---|
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
|
static String |
RUNTIME_LOG_JDK_LOGGER_LEVEL |
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX| Constructor and Description |
|---|
JdkLogChute() |
| Modifier and Type | Method and Description |
|---|---|
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)
Tell whether or not a log level is enabled.
|
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
|
public static final String RUNTIME_LOG_JDK_LOGGER
public static final String RUNTIME_LOG_JDK_LOGGER_LEVEL
public static final String DEFAULT_LOG_NAME
protected Logger logger
public void init(RuntimeServices rs)
LogChuteinit in interface LogChuteLogChute.init(org.apache.velocity.runtime.RuntimeServices)protected Level getJdkLevel(int level)
level - public void log(int level,
String message)
public void log(int level,
String message,
Throwable t)
public boolean isLevelEnabled(int level)
LogChuteisLevelEnabled in interface LogChuteLogChute.isLevelEnabled(int)Copyright © 2000–2016. All rights reserved.