Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
registerLogger (string $key, string $class, bool $replace=false) | |
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() | |
$loggerRegistry | |
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 Response\__construct(), Authentication\__construct(), InstallerExtension\__construct(), DaemonApplication\__construct(), TaskOption\__get(), FormField\__set(), FileStorage\_deleteFolder(), FileStorage\_filesInFolder(), FileStorage\_folders(), Editor\_loadEditor(), FtpClient\_mode(), FtpClient\_passive(), FtpClient\_putCmd(), ContactController\_sendEmail(), FtpClient\_verifyResponse(), Installer\abort(), RegistrationModel\activate(), UserHelper\activateUser(), File\append(), Authentication\authenticate(), IndexerController\batch(), DaemonApplication\changeIdentity(), FtpClient\chdir(), FtpClient\chmod(), FtpClient\connect(), File\copy(), Installer\copyFiles(), Folder\create(), FtpClient\create(), LanguageAdapter\createContentLanguage(), Factory\createMailer(), DaemonApplication\daemonize(), MessageModel\delete(), HistoryModel\delete(), File\delete(), Folder\delete(), FtpClient\delete(), AdminModel\delete(), DaemonApplication\detach(), InstallerHelper\detectType(), LanguageAdapter\discover_install(), XmlView\display(), InstallerHelper\downloadPackage(), UpdateModel\downloadPackage(), DaemonApplication\execute(), Folder\files(), ComponentAdapter\finaliseUninstall(), Installer\findManifest(), Folder\folders(), DaemonApplication\fork(), FtpClient\get(), ContentHelper\getActions(), Access\getAssetRules(), CMSApplication\getCfg(), RedisStorage\getConnection(), SysinfoModel\getExtensions(), ItemsModel\getMenu(), MultilangstatusHelper\getModule(), CategoryField\getOptions(), PluginsField\getOptions(), Authentication\getPKCredentialRequestOptions(), Authentication\getPubkeyRequestOptions(), UpdateAdapter\getUpdateSiteResponse(), ExceptionHandler\handleUserDeprecatedErrors(), DaemonApplication\isActive(), HistoryModel\keep(), FtpClient\listDetails(), FtpClient\listNames(), User\load(), Toolbar\loadButtonType(), Changelog\loadFromXml(), Update\loadFromXml(), ExceptionHandler\logException(), FtpClient\login(), Joomla\Component\Scheduler\Administrator\Traits\logTask(), FtpClient\mkdir(), File\move(), Installer\parseFiles(), Installer\parseLanguages(), Installer\parseMedia(), Installer\parseQueries(), Installer\parseSchemaUpdates(), Installer\parseSQLFiles(), FileAdapter\populateFilesAndFolderList(), InstallerScript\preflight(), RemindModel\processRemindRequest(), ResetModel\processResetRequest(), ItemsController\publish(), MessageModel\publish(), AdminModel\publish(), FtpClient\pwd(), FtpClient\read(), ModuleAdapter\refreshManifestCache(), LibraryAdapter\refreshManifestCache(), FileAdapter\refreshManifestCache(), PluginAdapter\refreshManifestCache(), TemplateAdapter\refreshManifestCache(), PackageAdapter\refreshManifestCache(), LanguageAdapter\refreshManifestCache(), ComponentAdapter\refreshManifestCache(), RegistrationModel\register(), FtpClient\reinit(), LanguageAdapter\removeExtensionFiles(), TemplateAdapter\removeExtensionFiles(), PackageAdapter\removeExtensionFiles(), Installer\removeFiles(), FtpClient\rename(), AdminModel\reorder(), LanguageAdapter\resetUserLanguage(), DaemonApplication\restart(), FtpClient\restart(), ApplicationModel\save(), MessageModel\save(), AdminModel\saveorder(), MailModel\send(), Email\sendCode(), IndexerController\sendResponse(), WorkflowModel\setDefault(), StageModel\setDefault(), Mail\setSender(), DaemonApplication\setupSignalHandlers(), DaemonApplication\shutdown(), DaemonApplication\signal(), IndexerController\start(), DaemonApplication\stop(), FtpClient\store(), FtpClient\syst(), InstallerAdapter\uninstall(), File\upload(), Authentication\validateAssertionResponse(), File\write(), FtpClient\write(), et DaemonApplication\writeProcessIdFile().
|
protected |
Method to add an entry to the appropriate loggers.
Références $class, Log\$loggers, $this, 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.
Référencé par Response\__construct(), Webauthn\__construct(), Task\__construct(), BaseController\__construct(), IndexerController\batch(), ModuleHelper\renderModule(), IndexerController\sendResponse(), CMSApplication\setupLogging(), et IndexerController\start().
|
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 Task\__construct(), et Logger\register().
|
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().
registerLogger | ( | string | $key, |
string | $class, | ||
bool | $replace = false |
||
) |
|
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 |
|
protected |
Référencé par Log\addLogEntry(), et Log\findLoggers().
|
protected |
const ALERT = 2 |
Référencé par Webauthn\__construct(), MessagequeueLogger\addEntry(), et CMSApplication\setupLogging().
const ALL = 30719 |
const CRITICAL = 4 |
const DEBUG = 128 |
const EMERGENCY = 1 |
const ERROR = 8 |
Référencé par Response\__construct(), Webauthn\__construct(), DaemonApplication\__construct(), MessagequeueLogger\addEntry(), DaemonApplication\changeIdentity(), XmlView\display(), ContentHelper\getActions(), ItemsModel\getMenu(), Joomla\Component\Scheduler\Administrator\Traits\logTask(), IndexerController\sendResponse(), CMSApplication\setupLogging(), et DaemonApplication\writeProcessIdFile().
const INFO = 64 |
Référencé par LogEntry\__construct(), MessagequeueLogger\addEntry(), IndexerController\batch(), DaemonApplication\changeIdentity(), UpdateModel\downloadPackage(), DaemonApplication\execute(), Access\getAssetRules(), UpdateAdapter\getUpdateSiteResponse(), Joomla\Component\Scheduler\Administrator\Traits\logTask(), Installer\parseSchemaUpdates(), DaemonApplication\restart(), DaemonApplication\shutdown(), IndexerController\start(), et DaemonApplication\stop().
const NOTICE = 32 |
const WARNING = 16 |
Référencé par Authentication\__construct(), InstallerExtension\__construct(), TaskOption\__get(), FileStorage\_deleteFolder(), FileStorage\_filesInFolder(), FileStorage\_folders(), Editor\_loadEditor(), FtpClient\_mode(), FtpClient\_passive(), FtpClient\_putCmd(), ContactController\_sendEmail(), FtpClient\_verifyResponse(), Installer\abort(), RegistrationModel\activate(), UserHelper\activateUser(), MessagequeueLogger\addEntry(), File\append(), Authentication\authenticate(), FtpClient\chdir(), FtpClient\chmod(), FtpClient\connect(), File\copy(), Installer\copyFiles(), Folder\create(), FtpClient\create(), Factory\createMailer(), DaemonApplication\daemonize(), MessageModel\delete(), HistoryModel\delete(), File\delete(), Folder\delete(), FtpClient\delete(), AdminModel\delete(), InstallerHelper\detectType(), LanguageAdapter\discover_install(), XmlView\display(), InstallerHelper\downloadPackage(), Folder\files(), ComponentAdapter\finaliseUninstall(), Installer\findManifest(), Folder\folders(), FtpClient\get(), Access\getAssetRules(), CMSApplication\getCfg(), SysinfoModel\getExtensions(), MultilangstatusHelper\getModule(), CategoryField\getOptions(), PluginsField\getOptions(), UpdateAdapter\getUpdateSiteResponse(), ExceptionHandler\handleUserDeprecatedErrors(), DaemonApplication\isActive(), HistoryModel\keep(), FtpClient\listDetails(), FtpClient\listNames(), User\load(), Toolbar\loadButtonType(), Changelog\loadFromXml(), Update\loadFromXml(), FtpClient\login(), Joomla\Component\Scheduler\Administrator\Traits\logTask(), FtpClient\mkdir(), File\move(), Installer\parseFiles(), Installer\parseLanguages(), Installer\parseMedia(), Installer\parseQueries(), Installer\parseSchemaUpdates(), Installer\parseSQLFiles(), FileAdapter\populateFilesAndFolderList(), InstallerScript\preflight(), RemindModel\processRemindRequest(), ResetModel\processResetRequest(), ItemsController\publish(), MessageModel\publish(), AdminModel\publish(), FtpClient\pwd(), FtpClient\read(), ModuleAdapter\refreshManifestCache(), LibraryAdapter\refreshManifestCache(), FileAdapter\refreshManifestCache(), PluginAdapter\refreshManifestCache(), TemplateAdapter\refreshManifestCache(), PackageAdapter\refreshManifestCache(), LanguageAdapter\refreshManifestCache(), ComponentAdapter\refreshManifestCache(), RegistrationModel\register(), FtpClient\reinit(), LanguageAdapter\removeExtensionFiles(), TemplateAdapter\removeExtensionFiles(), PackageAdapter\removeExtensionFiles(), Installer\removeFiles(), FtpClient\rename(), AdminModel\reorder(), FtpClient\restart(), ApplicationModel\save(), MessageModel\save(), AdminModel\saveorder(), MailModel\send(), Email\sendCode(), WorkflowModel\setDefault(), StageModel\setDefault(), Mail\setSender(), FtpClient\store(), FtpClient\syst(), InstallerAdapter\uninstall(), File\upload(), File\write(), et FtpClient\write().