Methods
Constructor
__construct(array | \Traversable | null $options) : \Zend\Log\Writer\ZendMonitor
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\Traversablenull
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
Is logging to this writer enabled?
isEnabled() : bool
If the Zend Monitor extension is not enabled, this log writer will
fail silently. You can query this method to determine if the log
writer is enabled.
Returns
bool
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
Perform shutdown activities such as closing open resources
shutdown() : void
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::shutdown() |
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
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 |
Is Zend Monitor enabled?
$isEnabled : bool
Is this for a Zend Server instance?
$isZendServer : bool