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
파일 보기 프로젝트 열기: vjousse/symfony-1.4

보호된 프로퍼티들

프로퍼티 타입 설명
$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