Class JLoggerDatabase

Description

Joomla! MySQL Database Log class

This class is designed to output logs to a specific MySQL database table. Fields in this table are based on the SysLog style of log output. This is designed to allow quick and easy searching.

  • since: 11.1

Located in /libraries/joomla/log/loggers/database.php (line 25)

JLogger
   |
   --JLoggerDatabase
Variable Summary
string $database
string $driver
string $host
string $password
string $table
string $user
Method Summary
JLoggerDatabase __construct (array &$options)
void addEntry (JLogEntry $entry)
void connect ()
Variables
string $database = 'logging' (line 55)
  • var: The name of the database table to use for the logger.
  • since: 11.1
  • access: protected
JDatabase $dbo (line 67)
  • var: The database connection object for the logger.
  • since: 11.1
  • access: protected
string $driver = 'mysql' (line 31)
  • var: The name of the database driver to use for connecting to the database.
  • since: 11.1
  • access: protected
string $host = '127.0.0.1' (line 37)
  • var: The host name (or IP) of the server with which to connect for the logger.
  • since: 11.1
  • access: protected
string $password = '' (line 49)
  • var: The password to use for connecting to the database server.
  • since: 11.1
  • access: protected
string $table = 'jos_' (line 61)
  • var: The database table to use for logging entries.
  • since: 11.1
  • access: protected
string $user = 'root' (line 43)
  • var: The database server user to connect as for the logger.
  • since: 11.1
  • access: protected

Inherited Variables

Inherited from JLogger

JLogger::$options
Methods
Constructor __construct (line 77)

Constructor.

  • since: 11.1
  • throws: LogException
  • access: public
JLoggerDatabase __construct (array &$options)
  • array &$options: Log object options.

Redefinition of:
JLogger::__construct()
Constructor.
addEntry (line 117)

Method to add an entry to the log.

  • since: 11.1
  • access: public
void addEntry (JLogEntry $entry)
  • JLogEntry $entry: The log entry object to add to the log.

Redefinition of:
JLogger::addEntry()
Method to add an entry to the log.
connect (line 139)

Method to connect to the database server based on object properties.

  • since: 11.1
  • throws: LogException
  • access: protected
void connect ()

Inherited Methods

Inherited From JLogger

JLogger::__construct()
JLogger::addEntry()

Documentation generated on Mon, 25 Jun 2012 13:54:01 -0500 by phpDocumentor 1.4.4