classes/phing/listener/PearLogListener.php
Writes build messages to PEAR Log.
By default it will log to file in current directory w/ name 'phing.log'. You can customize this behavior by setting properties: - pear.log.type - pear.log.name - pear.log.ident (note that this class changes ident to project name) - pear.log.conf (note that array values are currently unsupported in Phing property files)
phing -f build.xml -logger phing.listener.PearLogger -Dpear.log.type=file -Dpear.log.name=/path/to/log.log
- author
- Hans Lellelid
- package
- phing.listener
- see
- \BuildEvent
- version
- $Revision: 552 $ $Date: 2009-08-29 14:18:13 +0200 (Sat, 29 Aug 2009) $
\PearLogListener
Writes build messages to PEAR Log.
By default it will log to file in current directory w/ name 'phing.log'. You can customize this behavior by setting properties: - pear.log.type - pear.log.name - pear.log.ident (note that this class changes ident to project name) - pear.log.conf (note that array values are currently unsupported in Phing property files)
phing -f build.xml -logger phing.listener.PearLogger -Dpear.log.type=file -Dpear.log.name=/path/to/log.log
- Implements
- \BuildListener
- see
- \BuildEvent
- author
- Hans Lellelid
- package
- phing.listener
- version
- $Revision: 552 $ $Date: 2009-08-29 14:18:13 +0200 (Sat, 29 Aug 2009) $
Constants
Properties

array
$levelMap= 'array'
Maps Phing Project::MSG_* constants to PEAR_LOG_* constants.
arrayDetails- Type
- array

boolean
$logConfigured= 'false'
Whether logging has been configured.
falseDetails- Type
- boolean
Methods

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

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

logger(
)
:
\LogThis method just ensures that logging has been configured and returns the configured logger.
| Type | Description |
|---|---|
| \Log |

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

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

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

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

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