classes/phing/listener/XmlLogger.php
\XmlLogger
Generates a file in the current directory with an XML description of what happened during a build.
The default filename is "log.xml", but this can be overridden
with the property XmlLogger.file.
- Implements
- \BuildLogger
- author
- Michiel Rook
- package
- phing.listener
- version
- $Id: XmlLogger.php 552 2009-08-29 12:18:13Z mrook $
Constants
Properties

array
$elementStack= 'array'
arrayDetails- Type
- array
Methods

buildFinished(
\BuildEvent $event
)
:
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | An event with any relevant extra information. Will not be |

buildStarted(
\BuildEvent $event
)
:
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | Ignored. |

messageLogged(
\BuildEvent $event
)
:
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | An event with any relevant extra information. Will not be |

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(
\BuildEvent $event
)
:
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | An event with any relevant extra information. Will not be |

targetStarted(
\BuildEvent $event
)
:
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | An event with any relevant extra information. Will not be |

taskFinished(
\BuildEvent $event
)
:
| Name | Type | Description |
|---|---|---|
| $event | \BuildEvent | An event with any relevant extra information. Will not be |