Methods
Constructor
__construct(array | \Traversable $options)
Set options for a writer. Accepted options are:
- filters: array of filters to add to this filter
- formatter: formatter for this writer
Parameters
$options
array\Traversable
Exceptions
Set convert write errors to exception flag
setConvertWriteErrorsToExceptions(bool $convertErrors)
Parameters
$convertErrors
bool
Set filter plugin manager
setFilterPluginManager(string | \Zend\Log\Writer\FilterPluginManager $plugins) : \Zend\Log\Writer\self
Parameters
Exceptions
Returns
\Zend\Log\Writer\self
Perform shutdown activities such as closing open resources
shutdown() : void
Log a message to this writer.
write(array $event) : void
Parameters
$event
array
log data event
Write a message to the log
doWrite(array $event) : void
Parameters
$event
array
log data event
Properties
Use Zend\Stdlib\ErrorHandler to report errors during calls to write
$convertWriteErrorsToExceptions : bool
Error level passed to Zend\Stdlib\ErrorHandler::start for errors reported during calls to write
$errorsToExceptionsConversionLevel : bool