org.codehaus.cargo.util.log
Class AntLogger

java.lang.Object
  extended by org.codehaus.cargo.util.internal.log.AbstractLogger
      extended by org.codehaus.cargo.util.log.AntLogger
All Implemented Interfaces:
Logger

public class AntLogger
extends AbstractLogger

Logger implementation that logs to Ant.

Version:
$Id: AntLogger.java 1060 2006-06-30 16:02:28Z vmassol $

Constructor Summary
AntLogger(org.apache.tools.ant.Project project)
          Constructor.
AntLogger(org.apache.tools.ant.Target target)
          Constructor.
AntLogger(org.apache.tools.ant.Task task)
          Constructor.
 
Method Summary
protected  void doLog(LogLevel level, java.lang.String message, java.lang.String category)
          Common method for all severity levels.
 
Methods inherited from class org.codehaus.cargo.util.internal.log.AbstractLogger
debug, getLevel, info, setLevel, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntLogger

public AntLogger(org.apache.tools.ant.Task task)
Constructor.

Parameters:
task - The Ant task

AntLogger

public AntLogger(org.apache.tools.ant.Target target)
Constructor.

Parameters:
target - The current target

AntLogger

public AntLogger(org.apache.tools.ant.Project project)
Constructor.

Parameters:
project - The Ant project
Method Detail

doLog

protected void doLog(LogLevel level,
                     java.lang.String message,
                     java.lang.String category)
Common method for all severity levels.

Specified by:
doLog in class AbstractLogger
Parameters:
level - the log level (aka severity) of the message
message - the message to log
category - the log category
See Also:
AbstractLogger.doLog(LogLevel, String, String)


Copyright © 2004-2011 Codehaus. All Rights Reserved.