category |
Zend |
package |
Zend_Log |
subpackage |
Writer |
copyright |
Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license |
New BSD License |
version |
$Id$ |
inherited_from |
\Zend_Log_Writer_Abstract |
Methods
Class constructor
__construct(\Zend_Db_Adapter $db, string $table, array $columnMap = null
) : void
Parameters
$db
\Zend_Db_Adapter
Database adapter instance
$table
string
Log table in database
$columnMap
array
Add a filter specific to this writer.
addFilter(\Zend_Log_Filter_Interface|integer $filter) : \Zend_Log_Writer_Abstract
Inherited
Parameters
$filter
\Zend_Log_Filter_Interface
integer
Filter class or filter
priority
Exceptions
Returns
\Zend_Log_Writer_Abstract
Create a new instance of Zend_Log_Writer_Db
factory(array|\Zend_Config $config) : \Zend_Log_Writer_Db
Static
Parameters
$config
array
\Zend_Config
Returns
\Zend_Log_Writer_Db
Remove reference to database adapter
shutdown() : void
inherited_from |
\Zend_Log_Writer_Abstract::shutdown() |
Perform shutdown activites such as closing open resources
shutdown() : void
Inherited
Log a message to this writer.
write(array $event) : void
Inherited
Parameters
$event
array
log data event
Validate and optionally convert the config to array
_parseConfig(array|\Zend_Config $config) : array
InheritedStatic
Parameters
$config
array
\Zend_Config
Zend_Config or Array
Exceptions
Returns
array
Write a message to the log.
_write(array $event) : void
inherited_from |
\Zend_Log_Writer_Abstract::_write() |
Parameters
Exceptions
Write a message to the log.
_write(array $event) : void
Inherited
Parameters
$event
array
log data event
Properties
Relates database columns names to log data field keys.
$_columnMap : null | array
Database adapter instance
$_db : \Zend_Db_Adapter
of Zend_Log_Filter_Interface
$_filters : array
Name of the log table in the database
$_table : string