Back to Joomla project (class list)

Class DatabaseLogger - list of methods

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.

Extends

Package: Joomla\CMS\Log\Logger
Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Log/Logger/DatabaseLogger.php
Project: Joomla

Method Summary

public
(array &$options)

Constructor.
Parameters
  • array & $options Log object options.
Since
  • 1.7.0
Show source code of this method: __construct Source Code

public void
(\Joomla\CMS\Log\LogEntry $entry)

Method to add an entry to the log.
Parameters
  • \Joomla\CMS\Log\LogEntry $entry The log entry object to add to the log.
Returns
  • void
Since
  • 1.7.0
-
  • \RuntimeException
Show source code of this method: addEntry Source Code

protected void
()

Method to connect to the database server based on object properties.
Returns
  • void
Since
  • 1.7.0
-
  • \RuntimeException
Show source code of this method: connect Source Code

Properties Summary

protected string
$driver
The name of the database driver to use for connecting to the database.
Since
  • 1.7.0
protected string
$host
The host name (or IP) of the server with which to connect for the logger.
Since
  • 1.7.0
protected string
$user
The database server user to connect as for the logger.
Since
  • 1.7.0
protected string
$password
The password to use for connecting to the database server.
Since
  • 1.7.0
protected string
$database
The name of the database table to use for the logger.
Since
  • 1.7.0
protected string
$table
The database table to use for logging entries.
Since
  • 1.7.0
protected \Joomla\Database\DatabaseDriver
$db
The database driver object for the logger.
Since
  • 1.7.0

Tags Summary

Since
1.7.0