org.apache.tools.ant.util

Class TaskLogger

public final class TaskLogger extends Object

A facade that makes logging nicer to use.
Constructor Summary
TaskLogger(Task task)
Constructor for the TaskLogger
Method Summary
voiddebug(String message)
Log a message with MSG_DEBUG priority
voiderror(String message)
Log a message with MSG_ERR priority
voidinfo(String message)
Log a message with MSG_INFO priority
voidverbose(String message)
Log a message with MSG_VERBOSE priority
voidwarning(String message)
Log a message with MSG_WARN priority

Constructor Detail

TaskLogger

public TaskLogger(Task task)
Constructor for the TaskLogger

Parameters: task the task

Method Detail

debug

public void debug(String message)
Log a message with MSG_DEBUG priority

Parameters: message the message to log

error

public void error(String message)
Log a message with MSG_ERR priority

Parameters: message the message to log

info

public void info(String message)
Log a message with MSG_INFO priority

Parameters: message the message to log

verbose

public void verbose(String message)
Log a message with MSG_VERBOSE priority

Parameters: message the message to log

warning

public void warning(String message)
Log a message with MSG_WARN priority

Parameters: message the message to log