Property | Type | Description | |
---|---|---|---|
$err | Stream to use for error output. | ||
$msgOutputLevel | integer | @var int | |
$out | Stream to use for standard output. | ||
$startTime | integer | @var int |
Method | Description | |
---|---|---|
__construct ( ) | Construct a new default logger. | |
buildFinished ( BuildEvent $event ) | Prints whether the build succeeded or failed, and any errors that occured during the build. Also outputs the total build-time. | |
buildStarted ( BuildEvent $event ) | Sets the start-time when the build started. Used for calculating the build-time. | |
formatTime ( $micros ) | Formats a time micro integer to human readable format. | |
messageLogged ( BuildEvent $event ) | Print a message to the stdout. | |
setErrorStream ( OutputStream $err ) | Sets the error stream. | |
setMessageOutputLevel ( integer $level ) | Set the msgOutputLevel this logger is to respond to. | |
setOutputStream ( OutputStream $output ) | Sets the output stream. | |
targetFinished ( BuildEvent $event ) | Fired when a target has finished. We don't need specific action on this event. So the methods are empty. | |
targetStarted ( BuildEvent $event ) | Prints the current target name | |
taskFinished ( BuildEvent $event ) | Fired when a task has finished. We don't need specific action on this event. So the methods are empty. | |
taskStarted ( BuildEvent $event ) | Fired when a task is started. We don't need specific action on this event. So the methods are empty. |
Method | Description | |
---|---|---|
getBuildFailedMessage ( ) : string | Get the message to return when a build failed. | |
getBuildSuccessfulMessage ( ) : string | Get the message to return when a build succeeded. | |
printMessage ( string $message, OutputStream $stream, integer $priority ) : void | Prints a message to console. |
public buildFinished ( BuildEvent $event ) | ||
$event | BuildEvent |
public buildStarted ( BuildEvent $event ) | ||
$event | BuildEvent |
public static formatTime ( $micros ) |
protected getBuildFailedMessage ( ) : string | ||
return | string | The classic "BUILD FAILED" |
protected getBuildSuccessfulMessage ( ) : string | ||
return | string | The classic "BUILD FINISHED" |
public messageLogged ( BuildEvent $event ) | ||
$event | BuildEvent |
protected printMessage ( string $message, OutputStream $stream, integer $priority ) : void | ||
$message | string | The message to print.
Should not be null . |
$stream | OutputStream | The stream to use for message printing. |
$priority | integer | The priority of the message. (Ignored in this implementation.) |
return | void |
public setErrorStream ( OutputStream $err ) | ||
$err | OutputStream |
Constants for the message levels are in Project.php. The order of the levels, from least to most verbose, is:
public setMessageOutputLevel ( integer $level ) | ||
$level | integer | The logging level for the logger. |
public setOutputStream ( OutputStream $output ) | ||
$output | OutputStream |
public targetFinished ( BuildEvent $event ) | ||
$event | BuildEvent |
public targetStarted ( BuildEvent $event ) | ||
$event | BuildEvent |
public taskFinished ( BuildEvent $event ) | ||
$event | BuildEvent |
public taskStarted ( BuildEvent $event ) | ||
$event | BuildEvent |