PHP Trait Vimeo\ABLincoln\Experiments\Logging\FileLoggerTrait

Inheritance: use trait PSRLoggerTrait
Datei anzeigen Open project: vimeo/ablincoln

Protected Properties

Property Type Description
$file_paths
$loggers time it's instantiated. We do this by maintaining these class variables.

Public Methods

Method Description
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.

Protected Methods

Method Description
_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.

Method Details

_configureLogger() protected method

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() public method

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

Property Details

$file_paths protected_oe static_oe property

protected static $file_paths

$loggers protected_oe static_oe property

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