\JLogLoggerDatabase
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.
Synopsis
class JLogLoggerDatabase
extends JLogLogger
{
- // members
- protected $driver;
- protected $host;
- protected $user;
- protected $password;
- protected $database;
- protected $table;
- protected JDatabaseDriver $db;
- // Inherited members from JLogLogger
- protected $options;
- protected $priorities;
- // methods
- public void __construct()
- public void addEntry()
- protected void connect()
- // Inherited methods from JLogLogger
- public void __construct()
- public abstract void addEntry()
Hierarchy
Members
protected
- $database — string
- $db — JDatabaseDriver
- $driver — string
- $host — string
- $options
—
array
Options array for the JLog instance. - $password — string
- $priorities — array
- $table — string
- $user — string
Methods
protected
- connect() — Method to connect to the database server based on object properties.
public
- __construct() — Constructor.
- addEntry() — Method to add an entry to the log.
Inherited from JLogLogger
public
- addEntry() — Method to add an entry to the log.