FileDocCategorySizeDatePackage
TaskLogger.javaAPI DocApache Ant 1.702310Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.util

TaskLogger

public final class TaskLogger extends Object
A facade that makes logging nicer to use.

Fields Summary
private org.apache.tools.ant.Task
task
Task to use to do logging.
Constructors Summary
public TaskLogger(org.apache.tools.ant.Task task)
Constructor for the TaskLogger

param
task the task

        this.task = task;
    
Methods Summary
public voiddebug(java.lang.String message)
Log a message with MSG_DEBUG priority

param
message the message to log

        task.log(message, Project.MSG_DEBUG);
    
public voiderror(java.lang.String message)
Log a message with MSG_ERR priority

param
message the message to log

        task.log(message, Project.MSG_ERR);
    
public voidinfo(java.lang.String message)
Log a message with MSG_INFO priority

param
message the message to log

        task.log(message, Project.MSG_INFO);
    
public voidverbose(java.lang.String message)
Log a message with MSG_VERBOSE priority

param
message the message to log

        task.log(message, Project.MSG_VERBOSE);
    
public voidwarning(java.lang.String message)
Log a message with MSG_WARN priority

param
message the message to log

        task.log(message, Project.MSG_WARN);