org.apache.dvsl
Class AntLogSystem
java.lang.Object
org.apache.dvsl.AntLogChute
org.apache.dvsl.AntLogSystem
- All Implemented Interfaces:
- LogChute, LogSystem
Deprecated. Use AntLogChute instead.
public class AntLogSystem
- extends AntLogChute
- implements LogSystem
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.
- Version:
- $Id: AntLogSystem.java 538000 2007-05-14 21:59:05Z cbrisson $
- Author:
- Bill Burton
Constructor Summary |
AntLogSystem(org.apache.tools.ant.Task task)
Deprecated. |
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 |
AntLogSystem
public AntLogSystem(org.apache.tools.ant.Task task)
- Deprecated.
logVelocityMessage
public void logVelocityMessage(int level,
String message)
- Deprecated. use AntLogChute
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
- Specified by:
logVelocityMessage
in interface LogSystem
- Overrides:
logVelocityMessage
in class AntLogChute
- Parameters:
level
- severity levelmessage
- complete error message- See Also:
LogSystem
,
Task.log(String, int)
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.