| java.lang.Object org.apache.dvsl.AntLogChute
All known Subclasses: org.apache.dvsl.AntLogSystem,
AntLogChute | public class AntLogChute implements LogChute(Code) | | 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.
author: Bill Burton version: $Id:$ |
Constructor Summary | |
public | AntLogChute(Task task) Initialize this logger with a reference to the calling Ant Task
Parameters: task - Ant Task to use for logging. |
AntLogChute | public AntLogChute(Task task)(Code) | | Initialize this logger with a reference to the calling Ant Task
Parameters: task - Ant Task to use for logging. This must not be null. |
isLevelEnabled | public boolean isLevelEnabled(int level)(Code) | | |
log | public void log(int level, String message)(Code) | |
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
Parameters: level - severity level Parameters: message - complete error message See Also: org.apache.velocity.runtime.log.LogChute See Also: org.apache.tools.ant.Task.log(Stringint) |
log | public void log(int level, String message, Throwable throwable)(Code) | |
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
Parameters: level - severity level Parameters: message - complete error message Parameters: throwable - the throwable object to log See Also: org.apache.velocity.runtime.log.LogChute See Also: org.apache.tools.ant.Task.log(Stringint) |
logVelocityMessage | public void logVelocityMessage(int level, String message)(Code) | | |
|
|