Methods
Constructor
__construct(\Zend\Db\Adapter\Adapter | array | \Traversable $db, string $tableName, array $columnMap, string $separator)
We used the Adapter instead of Zend\Db for a performance reason.
Parameters
$tableName
string
$columnMap
array
$separator
string
Exceptions
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
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
Remove reference to database adapter
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
Transform event into column for the db table
eventIntoColumn(array $event) : array
Parameters
$event
array
Returns
array
Map event into column using the $columnMap array
mapEventIntoColumn(array $event, array $columnMap) : array
Parameters
$event
array
$columnMap
array
Returns
array
Prepare the INSERT SQL statement
prepareInsert(\Zend\Db\Adapter\Adapter $db, string $tableName, array $fields) : string
Parameters
$tableName
string
$fields
array
Returns
string
Properties
Relates database columns names to log data field keys.
$columnMap : null | array
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 |
Field separator for sub-elements
$separator : string
Table name
$tableName : string