org.apache.velocity.runtime.log
public class LogChuteSystem extends java.lang.Object implements LogChute
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
LogChuteSystem(LogSystem wrapMe)
Only classes in this package should be creating this.
|
Modifier and Type | Method and Description |
---|---|
void |
init(RuntimeServices rs)
Initializes this LogChute.
|
boolean |
isLevelEnabled(int level)
Tell whether or not a log level is enabled.
|
void |
log(int level,
java.lang.String message)
Send a log message from Velocity.
|
void |
log(int level,
java.lang.String message,
java.lang.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.
|
protected LogChuteSystem(LogSystem wrapMe)
wrapMe
- public void init(RuntimeServices rs) throws java.lang.Exception
LogChute
init
in interface LogChute
java.lang.Exception
LogChute.init(org.apache.velocity.runtime.RuntimeServices)
public void log(int level, java.lang.String message)
LogChute
log
in interface LogChute
LogChute.log(int, java.lang.String)
public void log(int level, java.lang.String message, java.lang.Throwable t)
public boolean isLevelEnabled(int level)
LogChute
isLevelEnabled
in interface LogChute
LogChute.isLevelEnabled(int)
Copyright © 2000-2014. All Rights Reserved.