AbstractWriter

implements Zend\Log\Writer\WriterInterface

Known subclasses

Omeka\Log\Writer\Job
Abstract

Open source code
Methods Summary
public
# __construct( array|\Traversable $options = NULL )
Constructor Set options for a writer. Accepted options are: - filters: array of filters to add to this filter - formatter: formatter for this writer
public
# addFilter( int|string|\Filter\FilterInterface $filter , array $options = NULL )
Add a filter specific to this writer.

Implementation of

public
# getFilterPluginManager( )
Get filter plugin manager
public
# setFilterPluginManager( string|\LogFilterPluginManager $plugins )
Set filter plugin manager
public
# filterPlugin( string $name , array $options = NULL )
Get filter instance
public
# getFormatterPluginManager( )
Get formatter plugin manager
public
# setFormatterPluginManager( string|\LogFormatterPluginManager $plugins )
Set formatter plugin manager
public
# formatterPlugin( string $name , array $options = NULL )
Get formatter instance
public
# write( array $event )
Log a message to this writer.

Implementation of

public
# setFormatter( string|\Formatter\FormatterInterface $formatter , array $options = NULL )
Set a new formatter for this writer

Implementation of

protected
# getFormatter( )
Get formatter
protected
# hasFormatter( )
Check if the writer has a formatter
public
# setConvertWriteErrorsToExceptions( bool $convertErrors )
Set convert write errors to exception flag
public
# shutdown( )
Perform shutdown activities such as closing open resources

Implementation of

abstract protected
# doWrite( array $event )
Write a message to the log
Properties Summary
protected Zend\Log\Writer\FilterPluginManager $filterPlugins
Filter plugins
# NULL
protected Zend\Log\Writer\FormatterPluginManager $formatterPlugins
Formatter plugins
# NULL
protected \Zend\Log\Filter\FilterInterface[] $filters
Filter chain
# array ( )
protected Zend\Log\Formatter\FormatterInterface $formatter
Formats the log message before writing
# NULL
protected bool $convertWriteErrorsToExceptions
Use Zend\Stdlib\ErrorHandler to report errors during calls to write
# true
protected bool $errorsToExceptionsConversionLevel
Error level passed to Zend\Stdlib\ErrorHandler::start for errors reported during calls to write
# 2