56 $this->baseFilename = $filename;
59 parent::__construct(
false);
81 return fopen($this->baseFilename, $this->mode);
88 $this->stream = $this->
open();
90 parent::emit($record);
101 if (is_resource($this->stream)) {
103 fclose($this->stream);
105 $this->stream =
false;
__construct($filename, $mode= 'at', $delay=false)
$mode
Opening mode for the log file.
Interface for a log record.
An handler that writes log messages to a file.
emit(\Plop\RecordInterface $record)
$stream
The stream where log messages will be write to.
An handler that writes log messages to a PHP stream.
$baseFilename
Path to the log file this handler writes to.
__destruct()
Free the resources used by this handler.