Stub class for backwards compatibility.
Since PHP 7 adds "null" as a reserved keyword, we can no longer have a class
named that and retain PHP 7 compatibility. The original class has been
renamed to "Noop", and this class is now an extension of it. It raises an
E_USER_DEPRECATED to warn users to migrate.
Methods
Constructor
__construct()
Set options for a writer. Accepted options are:
- filters: array of filters to add to this filter
- formatter: formatter for this writer
Exceptions
Add a filter specific to this writer.
addFilter(int | string | \Zend\Log\Filter\FilterInterface $filter, array $options) : \Zend\Log\Writer\AbstractWriter
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::addFilter() |
inherited_from |
\Zend\Log\Writer\Noop::addFilter() |
Parameters
$options
arraynull
Exceptions
Returns
Get filter instance
filterPlugin(string $name, array $options) : \Zend\Log\Filter\FilterInterface
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::filterPlugin() |
inherited_from |
\Zend\Log\Writer\Noop::filterPlugin() |
Parameters
$name
string
$options
arraynull
Returns
Get filter plugin manager
getFilterPluginManager() : \Zend\Log\Writer\FilterPluginManager
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::getFilterPluginManager() |
inherited_from |
\Zend\Log\Writer\Noop::getFilterPluginManager() |
Returns
Set convert write errors to exception flag
setConvertWriteErrorsToExceptions(bool $convertErrors)
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::setConvertWriteErrorsToExceptions() |
inherited_from |
\Zend\Log\Writer\Noop::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() |
inherited_from |
\Zend\Log\Writer\Noop::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() |
inherited_from |
\Zend\Log\Writer\Noop::shutdown() |
Log a message to this writer.
write(array $event) : void
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::write() |
inherited_from |
\Zend\Log\Writer\Noop::write() |
Parameters
$event
array
log data event
Write a message to the log.
doWrite(array $event) : void
Inherited
inherited_from |
\Zend\Log\Writer\Noop::doWrite() |
Parameters
Properties
Use Zend\Stdlib\ErrorHandler to report errors during calls to write
$convertWriteErrorsToExceptions : bool
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::$$convertWriteErrorsToExceptions |
inherited_from |
\Zend\Log\Writer\Noop::$$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 |
inherited_from |
\Zend\Log\Writer\Noop::$$errorsToExceptionsConversionLevel |
Filter plugins
$filterPlugins : \Zend\Log\Writer\FilterPluginManager
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::$$filterPlugins |
inherited_from |
\Zend\Log\Writer\Noop::$$filterPlugins |
Filter chain
$filters : \Zend\Log\Filter\FilterInterface[]
Inherited
inherited_from |
\Zend\Log\Writer\AbstractWriter::$$filters |
inherited_from |
\Zend\Log\Writer\Noop::$$filters |