PHP Class Pop\Log\Writer\File

Author: Nick Sagona, III ([email protected])
Inheritance: implements Pop\Log\Writer\WriterInterface
Datei anzeigen Open project: nicksagona/PopPHP

Protected Properties

Property Type Description
$allowed array Array of allowed log file types.

Public Methods

Method Description
__construct ( string $file, array $types = null ) : File Constructor
writeLog ( array $logEntry, array $options = [] ) : File Method to write to the log

Method Details

__construct() public method

Instantiate the file writer object.
public __construct ( string $file, array $types = null ) : File
$file string
$types array
return File

writeLog() public method

Method to write to the log
public writeLog ( array $logEntry, array $options = [] ) : File
$logEntry array
$options array
return File

Property Details

$allowed protected_oe property

Array of allowed log file types.
protected array $allowed
return array