Package org.apache.velocity.runtime.log
Class LogChuteSystem
- java.lang.Object
-
- org.apache.velocity.runtime.log.LogChuteSystem
-
-
Field Summary
Fields Modifier and Type Field Description private LogSystemlogSystem-
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
Constructors Modifier Constructor Description protectedLogChuteSystem(LogSystem wrapMe)Only classes in this package should be creating this.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(RuntimeServices rs)Initializes this LogChute.booleanisLevelEnabled(int level)Tell whether or not a log level is enabled.voidlog(int level, java.lang.String message)Send a log message from Velocity.voidlog(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.
-
-
-
Field Detail
-
logSystem
private LogSystem logSystem
-
-
Constructor Detail
-
LogChuteSystem
protected LogChuteSystem(LogSystem wrapMe)
Only classes in this package should be creating this. Users should not have to mess with this class.- Parameters:
wrapMe-
-
-
Method Detail
-
init
public void init(RuntimeServices rs) throws java.lang.Exception
Description copied from interface:LogChuteInitializes this LogChute.- Specified by:
initin interfaceLogChute- Throws:
java.lang.Exception- See Also:
LogChute.init(org.apache.velocity.runtime.RuntimeServices)
-
log
public void log(int level, java.lang.String message)Description copied from interface:LogChuteSend a log message from Velocity.- Specified by:
login interfaceLogChute- See Also:
LogChute.log(int, java.lang.String)
-
log
public 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.
-
isLevelEnabled
public boolean isLevelEnabled(int level)
Description copied from interface:LogChuteTell whether or not a log level is enabled.- Specified by:
isLevelEnabledin interfaceLogChute- Returns:
- True if a level is enabled.
- See Also:
LogChute.isLevelEnabled(int)
-
-