BuildLogger.php
Interface for build loggers.
Build loggers are build listeners but with some additional functionality: - They can be configured with a log level (below which they will ignore messages) - They have error and output streams
Classes that implement a listener must implement this interface.
- Author
- Hans Lellelid
- Package
- phing
- See
- \BuildEvent
- See
- \Project::addBuildListener()
- Version
- $Id$
\BuildLogger
Interface for build loggers.
Build loggers are build listeners but with some additional functionality: - They can be configured with a log level (below which they will ignore messages) - They have error and output streams
Classes that implement a listener must implement this interface.
- Parent(s)
- \BuildListener
- Children
- \XmlLogger
- \StreamRequiredBuildLogger
- See
- \BuildEvent
- See
- \Project::addBuildListener()
- Author
- Hans Lellelid
- Version
- $Id$
Methods

buildFinished(
\BuildEvent $event
)
:
void
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | The BuildEvent |

buildStarted(
\BuildEvent $event
)
:
void
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | The BuildEvent |

messageLogged(
\BuildEvent $event
)
:
void
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | The BuildEvent |

setErrorStream(
\OutputStream $err
)
:
voidSets the output stream to use for errors.
| Name | Type | Description |
|---|---|---|
| $err | \OutputStream | Configured output stream (e.g. STDERR) for errors. |

setMessageOutputLevel(
int $level
)
:
voidSets the min log level that this logger should respect.
Messages below this level are ignored.
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
| Name | Type | Description |
|---|---|---|
| $level | int | The log level integer (e.g. Project::MSG_VERBOSE, etc.). |

setOutputStream(
\OutputStream $output
)
:
voidSets the standard output stream to use.
| Name | Type | Description |
|---|---|---|
| $output | \OutputStream | Configured output stream (e.g. STDOUT) for standard output. |

targetFinished(
\BuildEvent $event
)
:
void
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | The BuildEvent |
- See
- \BuildEvent#getException()

targetStarted(
\BuildEvent $event
)
:
void
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | The BuildEvent |

taskFinished(
\BuildEvent $event
)
:
void
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | The BuildEvent |

taskStarted(
\BuildEvent $event
)
:
void
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | The BuildEvent |