The Log_sql class is a concrete implementation of the Log:: abstract class which sends messages to an SQL server. Each entry occupies a separate row in the database.
This implementation uses PHP's PEAR database abstraction layer.
CREATE TABLE log_table ( id INT NOT NULL, logtime TIMESTAMP NOT NULL, ident CHAR(16) NOT NULL, priority INT NOT NULL, message VARCHAR(200), PRIMARY KEY (id) );
Located in /maintenance/libraries/pear/Log/sql.php (line 36)
Log | --Log_sql
Object holding the database handle.
Array containing the dsn information.
Flag indicating that we're using an existing database connection.
Maximum length of the $ident string. This corresponds to the size of the 'ident' column in the SQL table.
String holding the name of the ID sequence.
String holding the database table to use.
Inherited from Log
Log::$_id
Log::$_ident
Log::$_listeners
Log::$_mask
Log::$_opened
Log::$_priority
Constructs a new sql logging object.
Closes the connection to the database if it is still open and we were the ones that opened it. It is the caller's responsible to close an existing connection that was passed to us via $conf['db'].
Inserts $message to the currently open database. Calls open(), if necessary. Also passes the message along to any Log_observer instances that are observing this Log.
Opens a connection to the database, if it has not already been opened. This is implicitly called by log(), if necessary.
Sets this Log instance's identification string. Note that this SQL-specific implementation will limit the length of the $ident string to sixteen (16) characters.
Inherited From Log
Log::alert()
Log::attach()
Log::close()
Log::crit()
Log::debug()
Log::detach()
Log::emerg()
Log::err()
Log::factory()
Log::flush()
Log::getIdent()
Log::getMask()
Log::getPriority()
Log::info()
Log::isComposite()
Log::log()
Log::MASK()
Log::notice()
Log::open()
Log::priorityToString()
Log::setIdent()
Log::setMask()
Log::setPriority()
Log::singleton()
Log::UPTO()
Log::warning()
Log::_announce()
Log::_extractMessage()
Log::_isMasked()
Documentation generated on Fri, 3 Dec 2004 12:27:37 +0000 by phpDocumentor 1.3.0RC3