PHP Класс PearLogListener, symfony-1.4

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
См. также: BuildEvent
Автор: Hans Lellelid ([email protected])
Наследование: implements BuildListener
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$levelMap array Maps Phing Project::MSG_* constants to PEAR_LOG_* constants.
$logConfigured boolean Whether logging has been configured.
$logger PEAR Log object.
$startTime integer @var int

Открытые методы

Метод Описание
buildFinished ( BuildEvent $event ) Logs 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.
messageLogged ( BuildEvent $event ) Logs a message to the configured PEAR logger.
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 ) Logs 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.

Защищенные методы

Метод Описание
configureLogging ( ) Configure the logger.
logger ( ) : Log Get the configured PEAR logger to use.

Описание методов

buildFinished() публичный Метод

Logs whether the build succeeded or failed, and any errors that occured during the build. Also outputs the total build-time.
См. также: BuildEvent::getException()
public buildFinished ( BuildEvent $event )
$event BuildEvent

buildStarted() публичный Метод

Sets the start-time when the build started. Used for calculating the build-time.
public buildStarted ( BuildEvent $event )
$event BuildEvent

configureLogging() защищенный Метод

Configure the logger.
protected configureLogging ( )

logger() защищенный Метод

This method just ensures that logging has been configured and returns the configured logger.
protected logger ( ) : Log
Результат Log

messageLogged() публичный Метод

Logs a message to the configured PEAR logger.
См. также: BuildEvent::getMessage()
public messageLogged ( BuildEvent $event )
$event BuildEvent

targetFinished() публичный Метод

@param BuildEvent The BuildEvent
public targetFinished ( BuildEvent $event )
$event BuildEvent

targetStarted() публичный Метод

Logs the current target name
См. также: BuildEvent::getTarget()
public targetStarted ( BuildEvent $event )
$event BuildEvent

taskFinished() публичный Метод

Fired when a task has finished. We don't need specific action on this event. So the methods are empty.
См. также: BuildEvent::getException()
public taskFinished ( BuildEvent $event )
$event BuildEvent

taskStarted() публичный Метод

@param BuildEvent The BuildEvent
public taskStarted ( BuildEvent $event )
$event BuildEvent

Описание свойств

$levelMap защищенное статическое свойство

Maps Phing Project::MSG_* constants to PEAR_LOG_* constants.
protected static array $levelMap
Результат array

$logConfigured защищенное свойство

Whether logging has been configured.
protected bool $logConfigured
Результат boolean

$logger защищенное свойство

PEAR Log object.
protected $logger

$startTime защищенное свойство

@var int
protected int $startTime
Результат integer