Writes a build event to the console.
Currently, it only writes which targets are being executed, and any messages that get logged.
author | Andreas Aderhold |
---|---|
copyright | 2001,2002 THYRELL. All rights reserved |
version | $Id$ |
see | \global\BuildEvent |
package | phing.listener |
__construct()
buildFinished(\BuildEvent $event)
Also outputs the total build-time.
object
The BuildEvent @see BuildEvent::getException()
buildStarted(\BuildEvent $event)
Used for calculating the build-time.
object
The BuildEvent @access public
formatTime($micros)
@param integer The time stamp
access | private |
---|
setErrorStream(\OutputStream $err)
setMessageOutputLevel(int $level)
Only messages with a message level lower than or equal to the given level are output to the log.
<
p> Constants for the message levels are in Project.php. The order of the levels, from least to most verbose, is:
The default message level for DefaultLogger is Project::MSG_ERR.
see | \global\BuildLogger#setMessageOutputLevel() |
---|
int
The logging level for the logger.
setOutputStream(\OutputStream $output)
targetFinished(\BuildEvent $event)
We don't need specific action on this event. So the methods are empty.
object
The BuildEvent @see BuildEvent::getException()
taskFinished(\BuildEvent $event)
We don't need specific action on this event. So the methods are empty.
object
The BuildEvent @access public @see BuildEvent::getException()
taskStarted(\BuildEvent $event)
We don't need specific action on this event. So the methods are empty.
object
The BuildEvent @access public @see BuildEvent::getTask()
getBuildFailedMessage() : string
string
The classic "BUILD FAILED"getBuildSuccessfulMessage() : string
string
The classic "BUILD FINISHED"printMessage(string $message, \OutputStream $stream, int $priority) : void
string
The message to print. Should not be null
.
resource
The stream to use for message printing.
int
The priority of the message. (Ignored in this implementation.)
$msgOutputLevel : int
The default is
Project::MSG_VERBOSE
.
$startTime
@var int
LEFT_COLUMN_SIZE : int
The default char width is 12.