org.apache.tools.ant.listener

Class TimestampedLogger

Implemented Interfaces:
BuildListener, BuildLogger, EventListener

public class TimestampedLogger
extends DefaultLogger

Like a normal logger, except with timed outputs

Field Summary

static String
SPACER
what appears between the old message and the new

Fields inherited from class org.apache.tools.ant.DefaultLogger

LEFT_COLUMN_SIZE, emacsMode, err, lSep, msgOutputLevel, out

Method Summary

protected String
getBuildFailedMessage()
This is an override point: the message that indicates whether a build failed.
protected String
getBuildSuccessfulMessage()
This is an override point: the message that indicates that a build succeeded.

Methods inherited from class org.apache.tools.ant.DefaultLogger

buildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, log, messageLogged, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, targetFinished, targetStarted, taskFinished, taskStarted

Field Details

SPACER

public static final String SPACER
what appears between the old message and the new

Method Details

getBuildFailedMessage

protected String getBuildFailedMessage()
This is an override point: the message that indicates whether a build failed. Subclasses can change/enhance the message.
Overrides:
getBuildFailedMessage in interface DefaultLogger
Returns:
The classic "BUILD FAILED" plus a timestamp

getBuildSuccessfulMessage

protected String getBuildSuccessfulMessage()
This is an override point: the message that indicates that a build succeeded. Subclasses can change/enhance the message.
Overrides:
getBuildSuccessfulMessage in interface DefaultLogger
Returns:
The classic "BUILD SUCCESSFUL" plus a timestamp