Uses PEAR Mail package to send the build log to one or more recipients.
Currently, it only writes which targets are being executed, and any messages that get logged.
author |
Michiel Rook mrook@php.net |
---|---|
package |
phing.listener |
version |
$Id$ |
__construct()
printMessage(string $message, resource $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.)
buildFinished(\BuildEvent $event)
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 | \BuildLogger#setMessageOutputLevel() |
---|
int
The logging level for the logger.
setOutputStream(\OutputStream $output)
setErrorStream(\OutputStream $err)
buildStarted(\BuildEvent $event)
getBuildFailedMessage() : string
string
The classic "BUILD FAILED"
getBuildSuccessfulMessage() : string
string
The classic "BUILD FINISHED"
targetStarted(\BuildEvent $event)
@param object The BuildEvent
access |
public @see BuildEvent::getTarget() |
---|---|
targetFinished(\BuildEvent $event)
taskStarted(\BuildEvent $event)
taskFinished(\BuildEvent $event)
@param object The BuildEvent
access |
public @see BuildEvent::getException() |
---|---|
formatTime($micros)
@param integer The time stamp
access |
private |
---|---|
LEFT_COLUMN_SIZE
@var int
_mailMessage :
_from :
_subject :
_tolist :
msgOutputLevel :
@var int
startTime :
@var int
out : \OutputStream
err : \OutputStream