| java.lang.Object org.apache.dvsl.AntLogChute org.apache.dvsl.AntLogSystem
AntLogSystem | public class AntLogSystem extends AntLogChute implements LogSystem(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: AntLogSystem.java 538000 2007-05-14 21:59:05Z cbrisson $ |
Method Summary | |
public void | logVelocityMessage(int level, String message)
Log Velocity messages through the Ant Task log method. |
AntLogSystem | public AntLogSystem(Task task)(Code) | | |
logVelocityMessage | public void logVelocityMessage(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.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.LogSystem See Also: org.apache.tools.ant.Task.log(Stringint) |
|
|