PHP Трейт Vimeo\ABLincoln\Experiments\Logging\FileLoggerTrait

Наследование: use trait PSRLoggerTrait
Показать файл Открыть проект

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

Свойство Тип Описание
$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