|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.runtime.log.LogChuteSystem
public class LogChuteSystem
Wrapper to make user's custom LogSystem implementations work with the new LogChute setup.
Field Summary |
---|
Fields inherited from interface org.apache.velocity.runtime.log.LogChute |
---|
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX |
Constructor Summary | |
---|---|
protected |
LogChuteSystem(LogSystem wrapMe)
Only classes in this package should be creating this. |
Method Summary | |
---|---|
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)
Send a log message from Velocity. |
void |
log(int level,
String message,
Throwable t)
First passes off the message at the specified level, then passes off stack trace of the Throwable as a 2nd message at the same level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LogChuteSystem(LogSystem wrapMe)
wrapMe
- Method Detail |
---|
public void init(RuntimeServices rs) throws Exception
LogChute
init
in interface LogChute
Exception
LogChute.init(org.apache.velocity.runtime.RuntimeServices)
public void log(int level, String message)
LogChute
log
in interface LogChute
LogChute.log(int, java.lang.String)
public void log(int level, String message, Throwable t)
log
in interface LogChute
level
- message
- t
- public boolean isLevelEnabled(int level)
LogChute
isLevelEnabled
in interface LogChute
LogChute.isLevelEnabled(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |