PHP 트레잇 Vimeo\ABLincoln\Experiments\Logging\PSRLoggerTrait

상속: use trait Psr\Log\LoggerAwareTrait
파일 보기 프로젝트 열기: vimeo/ablincoln

보호된 프로퍼티들

프로퍼티 타입 설명
$ALLOWED_LOG_LEVELS
$log_level

공개 메소드들

메소드 설명
setLogLevel ( string $level ) Set the level at which to log, which must be one of the constants defined in the PSR\Log\LogLevel class. Should be called externally or in the experiment setup() method so that the level is set before the logger gets instantiated.

보호된 메소드들

메소드 설명
_configureLogger ( ) PSR logger configuration can either be done outside of the experiment class or within this method if overriden. Either way, the initialized logger should be passed to the experiment via the LoggerAwareTrait's setLogger() method.
_log ( array $data ) Use the logging instance to log an optional message as well as exposure data. The log level may be set by the included setLogLevel() method.
_previouslyLogged ( ) Assume data has never been logged before and this is the first time we are seeing the inputs/outputs given (can be overriden if needed).

메소드 상세

_configureLogger() 보호된 메소드

PSR logger configuration can either be done outside of the experiment class or within this method if overriden. Either way, the initialized logger should be passed to the experiment via the LoggerAwareTrait's setLogger() method.
protected _configureLogger ( )

_log() 보호된 메소드

Use the logging instance to log an optional message as well as exposure data. The log level may be set by the included setLogLevel() method.
protected _log ( array $data )
$data array exposure log data to record

_previouslyLogged() 보호된 메소드

Assume data has never been logged before and this is the first time we are seeing the inputs/outputs given (can be overriden if needed).
protected _previouslyLogged ( )

setLogLevel() 공개 메소드

Set the level at which to log, which must be one of the constants defined in the PSR\Log\LogLevel class. Should be called externally or in the experiment setup() method so that the level is set before the logger gets instantiated.
public setLogLevel ( string $level )
$level string PSR level at which to log

프로퍼티 상세

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

protected $ALLOWED_LOG_LEVELS

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

protected $log_level