Class constructor. Pass it a database adapter and the table name of the log table.
Zend_Log_Adapter_Db
__construct
( $dbAdapter, [string $tableName = null])
-
Zend_Db_Adapter
$dbAdapter
-
string
$tableName
Does nothing.
bool
close
()
Implementation of:
- Zend_Log_Adapter_Interface::close()
- Close the log storage opened by the log adapter. If the adapter supports buffering, all log data must be sent to the log before the storage is closed.
Does nothing.
bool
open
()
Implementation of:
- Zend_Log_Adapter_Interface::open()
- Open the storage resource. If the adapter supports buffering, this may not actually open anything until it is time to flush the buffer.
Sets either 'fieldMessage' to change the field name where messages are logged, or 'fieldLevel' to change the field name where the log levels are logged.
void
setOption
(string $optionKey, string $optionValue)
-
string
$optionKey
-
string
$optionValue
Implementation of:
- Zend_Log_Adapter_Interface::setOption()
- Sets an option specific to the implementation of the log adapter.
Writes an array of key/value pairs to the database, where the keys are the database field names and values are what to put in those fields.
bool
write
(array $fields)
Implementation of:
- Zend_Log_Adapter_Interface::write()
- Write a message to the log. If the adapter supports buffering, the message may or may not actually go into storage until the buffer is flushed.