classes/phing/listener/DefaultLogger.php
\DefaultLogger
Writes a build event to the console.
Currently, it only writes which targets are being executed, and any messages that get logged.
- Implements
- \StreamRequiredBuildLogger
- see
- \BuildEvent
- author
- Andreas Aderhold
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.listener
- version
- $Revision: 912 $ $Date: 2010-10-12 03:08:31 +0200 (Tue, 12 Oct 2010) $
Constants
Properties

$msgOutputLevel= 'Project'
The message output level that should be used. The default is <code>Project::MSG_VERBOSE</code>.
@var int
ProjectDetails- Type
Methods

buildFinished(
$event
)
:
@param object The BuildEvent
| Name | Type | Description |
|---|---|---|
| $event |

buildStarted(
$event
)
:
@param object The BuildEvent
| Name | Type | Description |
|---|---|---|
| $event |
- access
- public

formatTime(
$micros
)
:
@param integer The time stamp
| Name | Type | Description |
|---|---|---|
| $micros |
- access
- private

getBuildFailedMessage(
)
:
string| Type | Description |
|---|---|
| string |

getBuildSuccessfulMessage(
)
:
string| Type | Description |
|---|---|
| string |

messageLogged(
$event
)
:
@param object The BuildEvent
| Name | Type | Description |
|---|---|---|
| $event |
- access
- public
- see
- \BuildEvent::getMessage()

printMessage(
string $message, resource $stream, int $priority
)
:
void| Name | Type | Description |
|---|---|---|
| $message | string | The message to print. Should not be |
| $stream | resource | The stream to use for message printing. |
| $priority | int | The priority of the message. (Ignored in this implementation.) |

setErrorStream(
\OutputStream $err
)
:
| Name | Type | Description |
|---|---|---|
| $err | \OutputStream |
- see
- \BuildLogger#setErrorStream()

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:
- Project::MSG_ERR
- Project::MSG_WARN
- Project::MSG_INFO
- Project::MSG_VERBOSE
- Project::MSG_DEBUG
The default message level for DefaultLogger is Project::MSG_ERR.
| Name | Type | Description |
|---|---|---|
| $level | int | The logging level for the logger. |
- see
- \BuildLogger#setMessageOutputLevel()

setOutputStream(
\OutputStream $output
)
:
| Name | Type | Description |
|---|---|---|
| $output | \OutputStream |
- see
- \BuildLogger#setOutputStream()

targetFinished(
$event
)
:
@param object The BuildEvent
| Name | Type | Description |
|---|---|---|
| $event |

targetStarted(
$event
)
:
@param object The BuildEvent
| Name | Type | Description |
|---|---|---|
| $event |
- access
- public
- see
- \BuildEvent::getTarget()

taskFinished(
$event
)
:
@param object The BuildEvent
| Name | Type | Description |
|---|---|---|
| $event |
- access
- public
- see
- \BuildEvent::getException()

taskStarted(
$event
)
:
@param object The BuildEvent
| Name | Type | Description |
|---|---|---|
| $event |
- access
- public
- see
- \BuildEvent::getTask()