Methods
Constructor
__construct(string | resource | array | \Traversable $streamOrUrl, string | null $mode, null | string $logSeparator) : \Zend\Log\Writer\Stream
Set options for a writer. Accepted options are:
- filters: array of filters to add to this filter
- formatter: formatter for this writer
Parameters
$streamOrUrl
stringresourcearray\Traversable
Stream or URL to open as a stream
$mode
stringnull
Mode, only applicable if a URL is given
$logSeparator
nullstring
Log separator string
Exceptions
Returns
Get filter instance
filterPlugin(string $name, array $options) : \Zend\Log\Filter\FilterInterface
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::filterPlugin() |
Parameters
$name
string
$options
arraynull
Returns
Get filter plugin manager
getFilterPluginManager() : \Zend\Log\Writer\FilterPluginManager
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::getFilterPluginManager() |
Returns
Get log separator string
getLogSeparator() : string
Set convert write errors to exception flag
setConvertWriteErrorsToExceptions(bool $convertErrors)
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::setConvertWriteErrorsToExceptions() |
Parameters
$convertErrors
bool
Set filter plugin manager
setFilterPluginManager(string | \Zend\Log\Writer\FilterPluginManager $plugins) : \Zend\Log\Writer\self
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::setFilterPluginManager() |
Parameters
Exceptions
Returns
\Zend\Log\Writer\self
Set log separator string
setLogSeparator(string $logSeparator) : \Zend\Log\Writer\Stream
Parameters
$logSeparator
string
Returns
Close the stream resource.
shutdown() : void
Log a message to this writer.
write(array $event) : void
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::write() |
Parameters
$event
array
log data event
Write a message to the log.
doWrite(array $event) : void
Properties
Use Zend\Stdlib\ErrorHandler to report errors during calls to write
$convertWriteErrorsToExceptions : bool
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::$$convertWriteErrorsToExceptions |
Error level passed to Zend\Stdlib\ErrorHandler::start for errors reported during calls to write
$errorsToExceptionsConversionLevel : bool
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::$$errorsToExceptionsConversionLevel |
Separator between log entries
$logSeparator : string
Holds the PHP stream to log to.
$stream : null | \Zend\Log\Writer\stream