Class JLogLoggerDatabase

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/logger/database.php (line 23)

JLogLogger
   |
   --JLogLoggerDatabase
Variable Summary
 string $database
 string $driver
 string $host
 string $password
 string $table
 string $user
Method Summary
 JLogLoggerDatabase __construct (array &$options)
 void addEntry (JLogEntry $entry)
 void connect ()
Variables
string $database = 'logging' (line 53)
  • var: The name of the database table to use for the logger.
  • since: 11.1
  • access: protected
JDatabaseDriver $db (line 65)
  • var: The database driver object for the logger.
  • since: 11.1
  • access: protected
string $driver = 'mysqli' (line 29)
  • 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 35)
  • var: The host name (or IP) of the server with which to connect for the logger.
  • since: 11.1
  • access: protected
string $password = '' (line 47)
  • var: The password to use for connecting to the database server.
  • since: 11.1
  • access: protected
string $table = 'jos_' (line 59)
  • var: The database table to use for logging entries.
  • since: 11.1
  • access: protected
string $user = 'root' (line 41)
  • var: The database server user to connect as for the logger.
  • since: 11.1
  • access: protected

Inherited Variables

Inherited from JLogLogger

JLogLogger::$options
JLogLogger::$priorities
Methods
Constructor __construct (line 74)

Constructor.

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

Redefinition of:
JLogLogger::__construct()
Constructor.
addEntry (line 114)

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:
JLogLogger::addEntry()
Method to add an entry to the log.
connect (line 136)

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

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

Inherited Methods

Inherited From JLogLogger

 JLogLogger::__construct()
 JLogLogger::addEntry()

Documentation generated on Tue, 19 Nov 2013 14:57:47 +0100 by phpDocumentor 1.4.3