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é
Référence de la classe Log

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
 

Description détaillée

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.

Depuis
1.7.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )
protected

Constructor.

Depuis
1.7.0

Documentation des fonctions membres

◆ add()

static add (   $entry,
  $priority = self::INFO,
  $category = '',
  $date = null,
array  $context = array() 
)
static

Method to add an entry to the log.

Paramètres
mixed$entryThe LogEntry object to add to the log or the message for a new LogEntry object.
integer$priorityMessage priority.
string$categoryType of entry
string$dateDate of entry (defaults to now if not specified or blank)
array$contextAn optional array with additional message context.
Renvoie
void
Depuis
1.7.0

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().

◆ addLogEntry()

addLogEntry ( LogEntry  $entry)
protected

Method to add an entry to the appropriate loggers.

Paramètres
LogEntry$entryThe LogEntry object to send to the loggers.
Renvoie
void
Depuis
1.7.0
Exceptions

Références $class, Log\$loggers, et Log\findLoggers().

◆ addLogger()

static addLogger ( array  $options,
  $priorities = self::ALL,
  $categories = array(),
  $exclude = false 
)
static

Add a logger to the Log instance. Loggers route log entries to the correct files/systems to be logged.

Paramètres
array$optionsThe object configuration array.
integer$prioritiesMessage priority
array$categoriesTypes of entry
boolean$excludeIf true, all categories will be logged except those in the $categories array
Renvoie
void
Depuis
1.7.0

Références $options.

◆ addLoggerInternal()

addLoggerInternal ( array  $options,
  $priorities = self::ALL,
  $categories = array(),
  $exclude = false 
)
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.

Paramètres
array$optionsThe object configuration array.
integer$prioritiesMessage priority
array$categoriesTypes of entry
boolean$excludeIf true, all categories will be logged except those in the $categories array
Renvoie
void
Depuis
1.7.0

Références $options, et elseif.

◆ createDelegatedLogger()

static createDelegatedLogger ( )
static

Creates a delegated PSR-3 compatible logger from the current singleton instance. This method always returns a new delegated logger.

Renvoie
DelegatingPsrLogger
Depuis
3.8.0

Référencé par ImageFilter\__construct(), Image\__construct(), et Factory\getApplication().

◆ findLoggers()

findLoggers (   $priority,
  $category 
)
protected

Method to find the loggers to use based on priority and category values.

Paramètres
integer$priorityMessage priority.
string$categoryType of entry
Renvoie
array The array of loggers to use for the given priority and category values.
Depuis
1.7.0

Références $category, et Log\$loggers.

Référencé par Log\addLogEntry().

◆ setInstance()

static setInstance (   $instance)
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.

Paramètres
Log$instanceThe logging object instance to be used by the static methods.
Renvoie
void
Depuis
1.7.0

Références Log\$instance, et null.

Documentation des champs

◆ $configurations

$configurations = array()
protected

◆ $instance

$instance
staticprotected

Référencé par Log\setInstance().

◆ $loggers

$loggers = array()
protected

Référencé par Log\addLogEntry(), et Log\findLoggers().

◆ $lookup

$lookup = array()
protected

◆ ALERT

const ALERT = 2

Référencé par MessagequeueLogger\addEntry().

◆ ALL

const ALL = 30719

◆ CRITICAL

const CRITICAL = 4

◆ DEBUG

const DEBUG = 128

Référencé par RedisStorage\getConnection().

◆ EMERGENCY

const EMERGENCY = 1

Référencé par MessagequeueLogger\addEntry().

◆ ERROR

◆ INFO

◆ NOTICE

const NOTICE = 32

Référencé par MessagequeueLogger\addEntry().

◆ WARNING


La documentation de cette classe a été générée à partir du fichier suivant :