PHP 클래스 Clockwork\Clockwork

상속: implements Psr\Log\LoggerInterface
파일 보기 프로젝트 열기: itsgoingd/clockwork 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dataSources Array of data sources, these objects provide data to be stored in a request object
$log Request\Log instance, data structure which stores data for the log view
$request Request object, data structure which stores data about current application request
$storage Storage object, provides implementation for storing and retrieving request objects
$timeline Request\Timeline instance, data structure which stores data for the timeline view

공개 메소드들

메소드 설명
__construct ( ) Create a new Clockwork instance with default request object
addDataSource ( Clockwork\DataSource\DataSourceInterface $dataSource ) Add a new data source
alert ( $message, array $context = [] )
critical ( $message, array $context = [] )
debug ( $message, array $context = [] )
emergency ( $message, array $context = [] )
endEvent ( $name )
error ( $message, array $context = [] )
getDataSources ( ) Return array of all added data sources
getLog ( ) Return the log instance
getRequest ( ) Return the request object
getStorage ( ) Return the storage object
getTimeline ( ) Return the timeline instance
info ( $message, array $context = [] )
log ( $level = LogLevel::INFO, $message, array $context = [] ) Shortcut methods for the current log instance
notice ( $message, array $context = [] )
resolveRequest ( ) Add data from all data sources to request
setLog ( Log $log ) Set a custom log instance
setRequest ( Request $request ) Set a custom request object
setStorage ( Clockwork\Storage\StorageInterface $storage ) Set a custom storage object
setTimeline ( Timeline $timeline ) Set a custom timeline instance
startEvent ( $name, $description, $time = null ) Shortcut methods for the current timeline instance
storeRequest ( ) Store request via storage object
warning ( $message, array $context = [] )

메소드 상세

__construct() 공개 메소드

Create a new Clockwork instance with default request object
public __construct ( )

addDataSource() 공개 메소드

Add a new data source
public addDataSource ( Clockwork\DataSource\DataSourceInterface $dataSource )
$dataSource Clockwork\DataSource\DataSourceInterface

alert() 공개 메소드

public alert ( $message, array $context = [] )
$context array

critical() 공개 메소드

public critical ( $message, array $context = [] )
$context array

debug() 공개 메소드

public debug ( $message, array $context = [] )
$context array

emergency() 공개 메소드

public emergency ( $message, array $context = [] )
$context array

endEvent() 공개 메소드

public endEvent ( $name )

error() 공개 메소드

public error ( $message, array $context = [] )
$context array

getDataSources() 공개 메소드

Return array of all added data sources
public getDataSources ( )

getLog() 공개 메소드

Return the log instance
public getLog ( )

getRequest() 공개 메소드

Return the request object
public getRequest ( )

getStorage() 공개 메소드

Return the storage object
public getStorage ( )

getTimeline() 공개 메소드

Return the timeline instance
public getTimeline ( )

info() 공개 메소드

public info ( $message, array $context = [] )
$context array

log() 공개 메소드

Shortcut methods for the current log instance
public log ( $level = LogLevel::INFO, $message, array $context = [] )
$context array

notice() 공개 메소드

public notice ( $message, array $context = [] )
$context array

resolveRequest() 공개 메소드

Add data from all data sources to request
public resolveRequest ( )

setLog() 공개 메소드

Set a custom log instance
public setLog ( Log $log )
$log Clockwork\Request\Log

setRequest() 공개 메소드

Set a custom request object
public setRequest ( Request $request )
$request Clockwork\Request\Request

setStorage() 공개 메소드

Set a custom storage object
public setStorage ( Clockwork\Storage\StorageInterface $storage )
$storage Clockwork\Storage\StorageInterface

setTimeline() 공개 메소드

Set a custom timeline instance
public setTimeline ( Timeline $timeline )
$timeline Clockwork\Request\Timeline

startEvent() 공개 메소드

Shortcut methods for the current timeline instance
public startEvent ( $name, $description, $time = null )

storeRequest() 공개 메소드

Store request via storage object
public storeRequest ( )

warning() 공개 메소드

public warning ( $message, array $context = [] )
$context array

프로퍼티 상세

$dataSources 보호되어 있는 프로퍼티

Array of data sources, these objects provide data to be stored in a request object
protected $dataSources

$log 보호되어 있는 프로퍼티

Request\Log instance, data structure which stores data for the log view
protected $log

$request 보호되어 있는 프로퍼티

Request object, data structure which stores data about current application request
protected $request

$storage 보호되어 있는 프로퍼티

Storage object, provides implementation for storing and retrieving request objects
protected $storage

$timeline 보호되어 있는 프로퍼티

Request\Timeline instance, data structure which stores data for the timeline view
protected $timeline