public class AntLogChute
extends java.lang.Object
implements org.apache.velocity.runtime.log.LogChute
| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.tools.ant.Task |
task |
| Constructor and Description |
|---|
AntLogChute(org.apache.tools.ant.Task task)
Initialize this logger with a reference to the calling Ant Task
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(org.apache.velocity.runtime.RuntimeServices rs)
Initialize the logger.
|
boolean |
isLevelEnabled(int level) |
void |
log(int level,
java.lang.String message)
Log Velocity messages through the Ant Task log method.
|
void |
log(int level,
java.lang.String message,
java.lang.Throwable throwable)
Log throwables through the Ant Task log method.
|
void |
logVelocityMessage(int level,
java.lang.String message) |
public AntLogChute(org.apache.tools.ant.Task task)
task - Ant Task to use for logging. This must not be null.public void init(org.apache.velocity.runtime.RuntimeServices rs)
throws java.lang.Exception
init in interface org.apache.velocity.runtime.log.LogChutejava.lang.Exception - if null was passed into the constructorpublic void log(int level,
java.lang.String message)
Log Velocity messages through the Ant Task log method. The mapping of logging levels from Velocity to Ant is as follows:
Velocity Level --> Ant Level LogSystem.TRACE_ID --> Project.MSG_DEBUG LogSystem.DEBUG_ID --> Project.MSG_DEBUG LogSystem.INFO_ID --> Project.MSG_VERBOSE LogSystem.WARN_ID --> Project.MSG_WARN LogSystem.ERROR_ID --> Project.MSG_ERR
log in interface org.apache.velocity.runtime.log.LogChutelevel - severity levelmessage - complete error messageLogChute,
Task.log(String, int)public void log(int level,
java.lang.String message,
java.lang.Throwable throwable)
Log throwables through the Ant Task log method. The mapping of logging levels from Velocity to Ant is as follows:
Velocity Level --> Ant Level LogSystem.TRACE_ID --> Project.MSG_DEBUG LogSystem.DEBUG_ID --> Project.MSG_DEBUG LogSystem.INFO_ID --> Project.MSG_VERBOSE LogSystem.WARN_ID --> Project.MSG_WARN LogSystem.ERROR_ID --> Project.MSG_ERR
log in interface org.apache.velocity.runtime.log.LogChutelevel - severity levelmessage - complete error messagethrowable - the throwable object to logLogChute,
Task.log(String, int)public boolean isLevelEnabled(int level)
isLevelEnabled in interface org.apache.velocity.runtime.log.LogChutepublic void logVelocityMessage(int level,
java.lang.String message)
Copyright (c) 2001-2007 Apache Software Foundation