Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques statiques | |
static | add ($entry, $priority=self::INFO, $category='', $date=null, array $context=array()) |
static | addLogger (array $options, $priorities=self::ALL, $categories=array(), $exclude=false) |
static | createDelegatedLogger () |
static | setInstance ($instance) |
Champs de données | |
const | ALL = 30719 |
const | EMERGENCY = 1 |
const | ALERT = 2 |
const | CRITICAL = 4 |
const | ERROR = 8 |
const | WARNING = 16 |
const | NOTICE = 32 |
const | INFO = 64 |
const | DEBUG = 128 |
Fonctions membres protégées | |
__construct () | |
addLoggerInternal (array $options, $priorities=self::ALL, $categories=array(), $exclude=false) | |
addLogEntry (LogEntry $entry) | |
findLoggers ($priority, $category) | |
Attributs protégés | |
$configurations = array() | |
$loggers = array() | |
$lookup = array() | |
Attributs protégés statiques | |
static | $instance |
Joomla! Log Class
This class hooks into the global log configuration settings to allow for user configured logging events to be sent to where the user wishes them to be sent. On high load sites Syslog is probably the best (pure PHP function), then the text file based loggers (CSV, W3c or plain Formattedtext) and finally MySQL offers the most features (e.g. rapid searching) but will incur a performance hit due to INSERT being issued.
|
protected |
Constructor.
|
static |
Method to add an entry to the log.
mixed | $entry | The LogEntry object to add to the log or the message for a new LogEntry object. |
integer | $priority | Message priority. |
string | $category | Type of entry |
string | $date | Date of entry (defaults to now if not specified or blank) |
array | $context | An optional array with additional message context. |
Références $category, $context, et $date.
Référencé par Route\_(), JAdminCssMenu\__construct(), FileStorage\_deleteFolder(), ExtensionAdapter\_endElement(), Update\_endElement(), FileStorage\_filesInFolder(), FileStorage\_folders(), ContentHelper\_getActions(), FtpClient\_mode(), FtpClient\_passive(), FtpClient\_putCmd(), FtpClient\_verifyResponse(), Mail\add(), Mail\addAttachment(), File\append(), FtpClient\chdir(), FtpClient\chmod(), FtpClient\connect(), File\copy(), HtmlDocument\countModules(), Folder\create(), FtpClient\create(), Factory\createMailer(), File\delete(), Folder\delete(), FtpClient\delete(), OutputController\end(), Folder\files(), CollectionAdapter\findUpdate(), ExtensionAdapter\findUpdate(), Folder\folders(), FtpClient\get(), Factory\getAcl(), ContentHelper\getActions(), RedisStorage\getConnection(), Factory\getEditor(), Factory\getFeedParser(), Image\getFilterInstance(), HTMLHelper\getJSObject(), HTMLHelper\getMd5Version(), File\getName(), UpdateAdapter\getUpdateSiteResponse(), Factory\getUri(), Factory\getXml(), Crypt\hasStrongPasswordSupport(), FtpClient\listDetails(), FtpClient\listNames(), Update\loadFromXml(), ExceptionHandler\logException(), FtpClient\login(), FtpClient\mkdir(), File\move(), FtpClient\pwd(), File\read(), FtpClient\read(), FtpClient\reinit(), FtpClient\rename(), MessageRenderer\render(), FtpClient\restart(), Text\script(), HTMLHelper\script(), Mail\setFrom(), Mail\setSender(), OutputController\start(), FtpClient\store(), HTMLHelper\stylesheet(), FtpClient\syst(), CacheStorage\test(), File\upload(), File\write(), et FtpClient\write().
|
protected |
Method to add an entry to the appropriate loggers.
Références $class, Log\$loggers, et Log\findLoggers().
|
static |
Add a logger to the Log instance. Loggers route log entries to the correct files/systems to be logged.
array | $options | The object configuration array. |
integer | $priorities | Message priority |
array | $categories | Types of entry |
boolean | $exclude | If true, all categories will be logged except those in the $categories array |
Références $options.
|
protected |
Add a logger to the Log instance. Loggers route log entries to the correct files/systems to be logged. This method allows you to extend Log completely.
array | $options | The object configuration array. |
integer | $priorities | Message priority |
array | $categories | Types of entry |
boolean | $exclude | If true, all categories will be logged except those in the $categories array |
|
static |
Creates a delegated PSR-3 compatible logger from the current singleton instance. This method always returns a new delegated logger.
Référencé par ImageFilter\__construct(), Image\__construct(), et Factory\getApplication().
|
protected |
Method to find the loggers to use based on priority and category values.
integer | $priority | Message priority. |
string | $category | Type of entry |
Références $category, et Log\$loggers.
Référencé par Log\addLogEntry().
|
static |
Returns a reference to the a Log object, only creating it if it doesn't already exist. Note: This is principally made available for testing and internal purposes.
Log | $instance | The logging object instance to be used by the static methods. |
Références Log\$instance, et null.
|
protected |
|
staticprotected |
Référencé par Log\setInstance().
|
protected |
Référencé par Log\addLogEntry(), et Log\findLoggers().
|
protected |
const ALERT = 2 |
Référencé par MessagequeueLogger\addEntry().
const ALL = 30719 |
const CRITICAL = 4 |
Référencé par MessagequeueLogger\addEntry(), et ExceptionHandler\logException().
const DEBUG = 128 |
Référencé par RedisStorage\getConnection().
const EMERGENCY = 1 |
Référencé par MessagequeueLogger\addEntry().
const ERROR = 8 |
Référencé par MessagequeueLogger\addEntry(), ContentHelper\getActions(), et Image\getFilterInstance().
const INFO = 64 |
Référencé par LogEntry\__construct(), MessagequeueLogger\addEntry(), et UpdateAdapter\getUpdateSiteResponse().
const NOTICE = 32 |
Référencé par MessagequeueLogger\addEntry().
const WARNING = 16 |
Référencé par Route\_(), JAdminCssMenu\__construct(), FileStorage\_deleteFolder(), ExtensionAdapter\_endElement(), Update\_endElement(), FileStorage\_filesInFolder(), FileStorage\_folders(), ContentHelper\_getActions(), FtpClient\_mode(), FtpClient\_passive(), FtpClient\_putCmd(), FtpClient\_verifyResponse(), Mail\add(), Mail\addAttachment(), MessagequeueLogger\addEntry(), File\append(), FtpClient\chdir(), FtpClient\chmod(), FtpClient\connect(), File\copy(), HtmlDocument\countModules(), Folder\create(), FtpClient\create(), Factory\createMailer(), File\delete(), Folder\delete(), FtpClient\delete(), OutputController\end(), Folder\files(), CollectionAdapter\findUpdate(), ExtensionAdapter\findUpdate(), Folder\folders(), FtpClient\get(), Factory\getAcl(), Factory\getEditor(), Factory\getFeedParser(), HTMLHelper\getJSObject(), HTMLHelper\getMd5Version(), File\getName(), UpdateAdapter\getUpdateSiteResponse(), Factory\getUri(), Factory\getXml(), Crypt\hasStrongPasswordSupport(), FtpClient\listDetails(), FtpClient\listNames(), Update\loadFromXml(), FtpClient\login(), FtpClient\mkdir(), File\move(), FtpClient\pwd(), File\read(), FtpClient\read(), FtpClient\reinit(), FtpClient\rename(), MessageRenderer\render(), FtpClient\restart(), Text\script(), HTMLHelper\script(), Mail\setFrom(), Mail\setSender(), OutputController\start(), FtpClient\store(), HTMLHelper\stylesheet(), FtpClient\syst(), CacheStorage\test(), File\upload(), File\write(), et FtpClient\write().