|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.dvsl.AntLogChute
org.apache.dvsl.AntLogSystem
public class AntLogSystem
Implementation of a logger to output messages via an Ant Task's log method. Velocity log levels are mapped to corresponding log levels defined in Ant's logging API. The end result is messages will only be output if Ant log level is high enough.
Field Summary |
---|
Fields inherited from class org.apache.dvsl.AntLogChute |
---|
task |
Fields inherited from interface org.apache.velocity.runtime.log.LogSystem |
---|
DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID |
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 | |
---|---|
AntLogSystem(org.apache.tools.ant.Task task)
Deprecated. |
Method Summary | |
---|---|
void |
logVelocityMessage(int level,
java.lang.String message)
Deprecated. use AntLogChute |
Methods inherited from class org.apache.dvsl.AntLogChute |
---|
init, isLevelEnabled, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.velocity.runtime.log.LogSystem |
---|
init |
Constructor Detail |
---|
public AntLogSystem(org.apache.tools.ant.Task task)
Method Detail |
---|
public void logVelocityMessage(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.DEBUG_ID --> Project.MSG_DEBUG LogSystem.INFO_ID --> Project.MSG_VERBOSE LogSystem.WARN_ID --> Project.MSG_WARN LogSystem.ERROR_ID --> Project.MSG_ERR
logVelocityMessage
in interface org.apache.velocity.runtime.log.LogSystem
logVelocityMessage
in class AntLogChute
level
- severity levelmessage
- complete error messageLogSystem
,
Task.log(String, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |