Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Log_Writer_Db Class Reference

Public Member Functions

 __construct ($db, $table, $columnMap=null)
 Class constructor.
 
 setFormatter (Zend_Log_Formatter_Interface $formatter)
 Formatting is not possible on this writer.
 
 shutdown ()
 Remove reference to database adapter.
 
- Public Member Functions inherited from Zend_Log_Writer_Abstract
 addFilter ($filter)
 Add a filter specific to this writer.
 
 write ($event)
 Log a message to this writer.
 
 setFormatter (Zend_Log_Formatter_Interface $formatter)
 Set a new formatter for this writer.
 
 shutdown ()
 Perform shutdown activites such as closing open resources.
 

Static Public Member Functions

static factory ($config)
 Create a new instance of Zend_Log_Writer_Db.
 

Protected Member Functions

 _write ($event)
 Write a message to the log.
 
- Protected Member Functions inherited from Zend_Log_Writer_Abstract
 _write ($event)
 Write a message to the log.
 

Protected Attributes

 $_db
 
 $_table
 
 $_columnMap
 
- Protected Attributes inherited from Zend_Log_Writer_Abstract
 $_filters = array()
 
 $_formatter
 

Additional Inherited Members

- Static Protected Member Functions inherited from Zend_Log_Writer_Abstract
static _parseConfig ($config)
 Validate and optionally convert the config to array.
 

Constructor & Destructor Documentation

__construct (   $db,
  $table,
  $columnMap = null 
)

Class constructor.

Parameters
Zend_Db_Adapter$dbDatabase adapter instance
string$tableLog table in database
array$columnMap
Returns
void

Member Function Documentation

_write (   $event)
protected

Write a message to the log.

Parameters
array$eventevent data
Returns
void
Exceptions
Zend_Log_Exception
static factory (   $config)
static

Create a new instance of Zend_Log_Writer_Db.

Parameters
array | Zend_Config$config
Returns
Zend_Log_Writer_Db

Implements Zend_Log_FactoryInterface.

setFormatter ( Zend_Log_Formatter_Interface  $formatter)

Formatting is not possible on this writer.

Returns
void
Exceptions
Zend_Log_Exception
shutdown ( )

Remove reference to database adapter.

Returns
void

Member Data Documentation

$_columnMap
protected
$_db
protected
$_table
protected