API17:JLog::add
From Joomla! Documentation
JLog::add
Description
Method to add an entry to the log.
public static function add (
$entry
$priority=JLog::INFO
$category= ''
$date=null
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $entry | mixed | The object to add to the log or the message for a new object. | |
| $priority | integer | JLog::INFO | Message priority. |
| $category | string | Type of entry | |
| $date | string | null | Date of entry (defaults to now if not specified or blank) |
- Returns void
- Defined on line 146 of libraries/joomla/log/log.php
- Since

- Referenced by
- JDaemon::__construct
- addEntry
- JDatabase::addQuoted
- JDaemon::changeIdentity
- JDaemon::daemonize
- JDatabase::debug
- JDatabaseSQLSrv::explain
- JDatabaseSQLAzure::explain
- JDatabaseMySQLi::explain
- JDatabaseMySQL::explain
- JDaemon::fork
- JDatabase::getErrorMsg
- JDatabase::getErrorNum
- getInstance
- JDatabase::getTicker
- JDaemon::isActive
- JDatabase::isQuoted
- JDatabaseSQLSrv::query
- JDatabaseSQLAzure::query
- JDatabaseMySQLi::query
- JDatabaseMySQL::query
- JDatabaseSQLSrv::queryBatch
- JDatabaseSQLAzure::queryBatch
- JDatabaseMySQLi::queryBatch
- JDatabaseMySQL::queryBatch
- JDaemon::restart
- JDaemon::setupSignalHandlers
- JDaemon::shutdown
- JDaemon::signal
- JDaemon::start
- JDatabase::stderr
- JDaemon::stop
- JDaemon::writeProcessIdFile
See also
JLog::add source code on BitBucket
Class JLog
Subpackage Log- Other versions of JLog::add
User contributed notes
Code Examples