DatabaseLogger
Extends LoggerJoomla! 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 |
1.7.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
Constructor.
__construct(array &options) : mixed
inherited
since |
3.0.1 |
---|
Arguments
- options
array
Log object options.
Response
mixed
addEntry
Method to add an entry to the log.
addEntry(\Joomla\CMS\Log\LogEntry entry) : void
inherited abstract
since |
3.0.1 |
---|---|
throws |
|
Arguments
- entry
\Joomla\CMS\Log\LogEntry
The log entry object to add to the log.
connect
Method to connect to the database server based on object properties.
connect() : void
since |
1.7.0 |
---|---|
throws |
|
Properties
driver
The name of the database driver to use for connecting to the database.
host
The host name (or IP) of the server with which to connect for the logger.
db
The database driver object for the logger.
since |
1.7.0 |
---|
Type(s)
\Joomla\Database\DatabaseDriver
priorities
Translation array for LogEntry priorities to text strings.
inherited