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

상속: use trait PSRLoggerTrait
파일 보기 프로젝트 열기: vimeo/ablincoln

보호된 프로퍼티들

프로퍼티 타입 설명
$file_paths
$loggers time it's instantiated. We do this by maintaining these class variables.

공개 메소드들

메소드 설명
setLogFile ( string $path ) Set the file path to log to - if not given, file name defaults to 'experiment_name.log'. This function should be called in the experiment setup() method so that the file path is set before the logger gets instantiated.

보호된 메소드들

메소드 설명
_configureLogger ( ) Set up Monolog logger to write to file. _configureLogger() only gets called once in AbstractExperiment upon making an experiment assignment so the logger will only be initialized a single time when needed.

메소드 상세

_configureLogger() 보호된 메소드

Set up Monolog logger to write to file. _configureLogger() only gets called once in AbstractExperiment upon making an experiment assignment so the logger will only be initialized a single time when needed.
protected _configureLogger ( )

setLogFile() 공개 메소드

Set the file path to log to - if not given, file name defaults to 'experiment_name.log'. This function should be called in the experiment setup() method so that the file path is set before the logger gets instantiated.
public setLogFile ( string $path )
$path string file path to log to

프로퍼티 상세

$file_paths 보호되어 있는 정적으로 프로퍼티

protected static $file_paths

$loggers 보호되어 있는 정적으로 프로퍼티

time it's instantiated. We do this by maintaining these class variables.
protected static $loggers