Joomla CMS  2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JLog

Liste de tous les membres

Fonctions membres publiques

 addEntry ($entry)

Fonctions membres publiques statiques

static add ($entry, $priority=JLog::INFO, $category= '', $date=null)
static addLogger (array $options, $priorities=JLog::ALL, $categories=array())
static getInstance ($file= 'error.php', $options=null, $path=null)
static setInstance ($instance)

Attributs publics

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

Attributs publics statiques

static $legacy = array()

Fonctions membres protégées

 __construct ()
 addLogEntry (JLogEntry $entry)
 findLoggers ($priority, $category)

Attributs protégés

 $configurations = array()
 $loggers = array()
 $lookup = array()

Attributs protégés statiques

static $instance

Documentation des constructeurs et destructeur

JLog::__construct ( )
protected

Constructor.

Depuis:
11.1

Documentation des fonctions membres

static JLog::add (   $entry,
  $priority = JLog::INFO,
  $category = '',
  $date = null 
)
static

Method to add an entry to the log.

Paramètres:
mixed$entryThe JLogEntry object to add to the log or the message for a new JLogEntry object.
integer$priorityMessage priority.
string$categoryType of entry
string$dateDate of entry (defaults to now if not specified or blank)
Renvoie:
void
Depuis:
11.1

Références $category, et $date.

Référencé par JImageFilter\__construct(), JSimpleCrypt\__construct(), JNode\__construct(), JTree\__construct(), JElement\__construct(), JParameter\__construct(), JImage\__construct(), JApplicationDaemon\__construct(), JSimpleXML\__construct(), JException\__construct(), JPaneTabs\__construct(), JRule\__construct(), JRules\__construct(), JPaneSliders\__construct(), FinderIndexerResponse\__construct(), JSimpleXMLElement\__construct(), JSimpleXML\_characterData(), JFactory\_createConfig(), JFactory\_createDbo(), JFactory\_createDocument(), JFactory\_createLanguage(), JFactory\_createMailer(), JFactory\_createSession(), JSimpleXML\_endElement(), JElementList\_getOptions(), JElementModuleLayouts\_getOptions(), JElementComponentLayouts\_getOptions(), JElementContentLanguages\_getOptions(), JElementTemplateStyle\_getSelected(), JSimpleXML\_getStackLocation(), JSimpleXML\_handleError(), JHtml\_includeRelativeFiles(), JPaneTabs\_loadBehavior(), JPaneSliders\_loadBehavior(), JSimpleXML\_parse(), JLanguage\_parseLanguageFiles(), JLanguage\_parseXMLLanguageFiles(), JSimpleXML\_startElement(), JHtmlList\accesslevel(), JSimpleXMLElement\addAttribute(), JNode\addChild(), JTree\addChild(), JSimpleXMLElement\addChild(), addEntry(), JDatabase\addQuoted(), JError\addToStack(), JHtmlImage\administrator(), JUtility\array_unshift_ref(), JUpdater\arrayUnique(), JXMLElement\asFormattedXML(), JError\attachHandler(), JSimpleXMLElement\attributes(), JUser\authorisedLevels(), JSite\authorize(), JUser\authorize(), JController\authorize(), FinderControllerIndexer\batch(), JParameter\bind(), JTable\canDelete(), JHtmlList\category(), FinderIndexerAdapter\change(), JApplicationDaemon\changeIdentity(), JController\checkEditId(), JSimpleXMLElement\children(), JHtml\core(), JError\customErrorHandler(), JError\customErrorPage(), JApplicationDaemon\daemonize(), JXMLElement\data(), JSimpleXMLElement\data(), JDatabase\debug(), JParameter\def(), JApplicationDaemon\detach(), JError\detachHandler(), JUtility\dump(), JPaneTabs\endPane(), JPaneSliders\endPane(), JPaneTabs\endPanel(), JPaneSliders\endPanel(), JImageFilterEdgedetect\execute(), JImageFilterEmboss\execute(), JImageFilterNegate\execute(), JImageFilterSketchy\execute(), JImageFilterBrightness\execute(), JImageFilterGrayScale\execute(), JImageFilterSmooth\execute(), JImageFilterContrast\execute(), JDatabaseMySQLi\execute(), JDatabaseMySQL\execute(), JDatabaseSQLSrv\execute(), JDatabaseMySQL\explain(), JDatabaseSQLSrv\explain(), JElementImageList\fetchElement(), JElementMenu\fetchElement(), JElementCategory\fetchElement(), JElementPassword\fetchElement(), JElementRadio\fetchElement(), JElementFilelist\fetchElement(), JElementFolderlist\fetchElement(), JElementSQL\fetchElement(), JElementTemplateStyle\fetchElement(), JElementTextarea\fetchElement(), JElementText\fetchElement(), JElementUserGroup\fetchElement(), JElementEditors\fetchElement(), JElementMenuItem\fetchElement(), JElementHelpsites\fetchElement(), JElementHidden\fetchElement(), JElementLanguages\fetchElement(), JElementTimezones\fetchElement(), JElementCalendar\fetchElement(), JElementSpacer\fetchElement(), JElement\fetchElement(), JElementHidden\fetchTooltip(), JElement\fetchTooltip(), JUpdaterExtension\findUpdate(), JUpdaterCollection\findUpdate(), JApplicationDaemon\fork(), JAccess\getActions(), JXMLElement\getAttribute(), JNode\getChildren(), FinderIndexerAdapter\getContentCount(), JSimpleXMLElement\getElementByPath(), JError\getError(), JException\getError(), JError\getErrorHandling(), JDatabase\getErrorMsg(), JDatabase\getErrorNum(), JError\getErrors(), JException\getErrors(), JDatabase\getEscaped(), JBrowser\getFeature(), JImage\getFilterInstance(), JParameter\getGroups(), JUtility\getHash(), JPane\getInstance(), getInstance(), JDatabase\getInstance(), FinderIndexerAdapter\getItem(), FinderIndexerAdapter\getItemMenuTitle(), FinderIndexerAdapter\getItems(), multilangstatusHelper\getLangfilter(), FinderIndexerAdapter\getListQuery(), JElement\getName(), JRegistry\getNameSpaces(), JParameter\getNumParams(), JFormFieldEditors\getOptions(), JInstaller\getOverwrite(), JParameter\getParam(), JParameter\getParams(), JTree\getParent(), JNode\getParent(), JSimpleXML\getParser(), JLanguage\getPluralSufficesCallback(), JBrowser\getQuirk(), JDatabase\getTableFields(), JDatabase\getTicker(), JUtility\getToken(), FinderIndexerAdapter\getTypeId(), FinderIndexerAdapter\getUpdateQueryByIds(), FinderIndexerAdapter\getUpdateQueryByTime(), JInstaller\getUpgrade(), JRegistry\getValue(), JFactory\getXMLParser(), JError\handleCallback(), JError\handleDie(), JError\handleEcho(), JError\handleIgnore(), JError\handleLog(), JError\handleMessage(), JError\handleVerbose(), JNode\hasChildren(), JBrowser\hasFeature(), JNode\hasParent(), JBrowser\hasQuirk(), JDatabaseMySQLi\hasUTF(), JDatabaseMySQL\hasUTF(), JController\holdEditId(), JBrowser\identifyBrowserVersion(), JSimpleXML\importDOM(), JApplicationDaemon\isActive(), JError\isError(), FinderHelperLanguage\isMultiLanguage(), JDatabase\isQuoted(), JUtility\isWinOS(), JSimpleXMLElement\level(), JSimpleXML\loadFile(), JImage\loadFile(), JRegistry\loadINI(), JRegistry\loadJSON(), JDatabase\loadResultArray(), JRegistry\loadSetupFile(), JSimpleXML\loadString(), JRegistry\loadXML(), JRegistry\makeNameSpace(), JSimpleXMLElement\map(), JHtmlBehavior\mootools(), JXMLElement\name(), JSimpleXMLElement\name(), JDatabase\nameQuote(), plgSystemRemember\onAfterInitialise(), FinderIndexerAdapter\onBeforeIndex(), FinderIndexerAdapter\onBuildIndex(), FinderIndexerAdapter\onStartIndex(), JHtmlSelect\optgroup(), JApplicationHelper\parseXMLInstallFile(), JDatabaseMySQLi\queryBatch(), JDatabaseMySQL\queryBatch(), JDatabaseSQLSrv\queryBatch(), JError\raise(), JError\raiseError(), JError\raiseNotice(), JError\raiseWarning(), JError\registerErrorLevel(), JController\releaseEditId(), FinderIndexerAdapter\remove(), JSimpleXMLElement\removeAttribute(), JSimpleXMLElement\removeChild(), JElement\render(), JParameter\render(), JError\renderBacktrace(), JComponentHelper\renderComponent(), JParameter\renderToArray(), JTree\reset(), JApplicationDaemon\restart(), JUtility\return_bytes(), JHtml\script(), JUtility\sendAdminMail(), JUtility\sendMail(), FinderControllerIndexer\sendResponse(), JException\set(), JController\setAccessControl(), JSimpleXMLElement\setData(), JException\setError(), JError\setErrorHandling(), JBrowser\setFeature(), JDate\setOffset(), JNode\setParent(), JSimpleXML\setParser(), JException\setProperties(), JBrowser\setQuirk(), JApplicationDaemon\setupSignalHandlers(), JRegistry\setValue(), JParameter\setXML(), JApplicationDaemon\shutdown(), JApplicationDaemon\signal(), JHtmlImage\site(), FinderControllerIndexer\start(), JApplicationDaemon\start(), JPaneTabs\startPane(), JPaneSliders\startPane(), JPaneTabs\startPanel(), JPaneSliders\startPanel(), JDatabase\stderr(), JApplicationDaemon\stop(), JRegistryFormatJSON\stringToObject(), JHtml\stylesheet(), JError\throwError(), JDate\toFormat(), JDate\toMySQL(), JObject\toString(), JSimpleXMLElement\toString(), JTableContent\toXML(), JTable\toXML(), JError\translateErrorLevel(), et JApplicationDaemon\writeProcessIdFile().

JLog::addEntry (   $entry)

Method to add an entry to the log file.

Paramètres:
array$entryArray of values to map to the format string for the log file.
Renvoie:
boolean True on success.
Depuis:
11.1
Obsolète:
12.1 Use JLog::add() instead.

Références add(), elseif, et WARNING.

+ Voici le graphe d'appel pour cette fonction :

JLog::addLogEntry ( JLogEntry  $entry)
protected

Method to add an entry to the appropriate loggers.

Paramètres:
JLogEntry$entryThe JLogEntry object to send to the loggers.
Renvoie:
void
Depuis:
11.1
Exceptions:
LogException

Références $class, et JText\_().

+ Voici le graphe d'appel pour cette fonction :

static JLog::addLogger ( array  $options,
  $priorities = JLog::ALL,
  $categories = array() 
)
static

Method to set the way the JError will handle different error levels. Use this if you want to override the default settings.

Paramètres:
array$optionsThe object configuration array.
integer$prioritiesMessage priority
array$categoriesTypes of entry
Renvoie:
void
Depuis:
11.1

Références $options.

Référencé par plgSystemDebug\__construct(), JController\__construct(), FinderIndexerResponse\__construct(), FinderControllerIndexer\batch(), FinderControllerIndexer\sendResponse(), et FinderControllerIndexer\start().

+ Voici le graphe des appelants de cette fonction :

JLog::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:
11.1

Références $category.

static JLog::getInstance (   $file = 'error.php',
  $options = null,
  $path = null 
)
static

Returns a JLog object for a given log file/configuration, only creating it if it doesn't already exist.

This method must be invoked as: $log = JLog::getInstance($file, $options, $path);

Paramètres:
string$fileThe filename of the log file.
array$optionsThe object configuration array.
string$pathThe base path for the log file.
Renvoie:
JLog
Depuis:
11.1
Obsolète:
12.1

Références $config, $file, $options, $path, add(), ALL, JFactory\getConfig(), null, et WARNING.

Référencé par JError\handleLog(), plgSystemLog\onUserLoginFailure(), et MediaControllerFile\upload().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

static JLog::setInstance (   $instance)
static

Returns a reference to the a JLog object, only creating it if it doesn't already exist. Note: This is principally made available for testing and internal purposes.

Paramètres:
JLog$instanceThe logging object instance to be used by the static methods.
Renvoie:
void
Depuis:
11.1

Références null.


Documentation des données membres

JLog::$configurations = array()
protected
JLog::$instance
staticprotected
JLog::$legacy = array()
static
JLog::$loggers = array()
protected
JLog::$lookup = array()
protected
const JLog::ALERT = 2

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

const JLog::ALL = 30719
const JLog::CRITICAL = 4
const JLog::WARNING = 16

Référencé par JSimpleCrypt\__construct(), JNode\__construct(), JTree\__construct(), JElement\__construct(), JParameter\__construct(), JSimpleXML\__construct(), JException\__construct(), JPaneTabs\__construct(), JRule\__construct(), JRules\__construct(), JPaneSliders\__construct(), JSimpleXMLElement\__construct(), JSimpleXML\_characterData(), JFactory\_createConfig(), JFactory\_createDbo(), JFactory\_createDocument(), JFactory\_createLanguage(), JFactory\_createMailer(), JFactory\_createSession(), JSimpleXML\_endElement(), JElementModuleLayouts\_getOptions(), JElementList\_getOptions(), JElementComponentLayouts\_getOptions(), JElementContentLanguages\_getOptions(), JElementTemplateStyle\_getSelected(), JSimpleXML\_getStackLocation(), JSimpleXML\_handleError(), JHtml\_includeRelativeFiles(), JPaneTabs\_loadBehavior(), JPaneSliders\_loadBehavior(), JSimpleXML\_parse(), JLanguage\_parseLanguageFiles(), JLanguage\_parseXMLLanguageFiles(), JSimpleXML\_startElement(), JHtmlList\accesslevel(), JSimpleXMLElement\addAttribute(), JNode\addChild(), JTree\addChild(), JSimpleXMLElement\addChild(), JLoggerMessageQueue\addEntry(), addEntry(), JDatabase\addQuoted(), JError\addToStack(), JHtmlImage\administrator(), JUtility\array_unshift_ref(), JUpdater\arrayUnique(), JXMLElement\asFormattedXML(), JError\attachHandler(), JSimpleXMLElement\attributes(), JUser\authorisedLevels(), JSite\authorize(), JUser\authorize(), JController\authorize(), JParameter\bind(), JTable\canDelete(), JHtmlList\category(), JSimpleXMLElement\children(), JHtml\core(), JError\customErrorHandler(), JError\customErrorPage(), JApplicationDaemon\daemonize(), JXMLElement\data(), JSimpleXMLElement\data(), JParameter\def(), JError\detachHandler(), JUtility\dump(), JPaneTabs\endPane(), JPaneSliders\endPane(), JPaneTabs\endPanel(), JPaneSliders\endPanel(), JDatabaseMySQL\explain(), JDatabaseSQLSrv\explain(), JElementPassword\fetchElement(), JElementRadio\fetchElement(), JElementCategory\fetchElement(), JElementUserGroup\fetchElement(), JElementMenu\fetchElement(), JElementFilelist\fetchElement(), JElementFolderlist\fetchElement(), JElementImageList\fetchElement(), JElementSQL\fetchElement(), JElementTemplateStyle\fetchElement(), JElementTextarea\fetchElement(), JElementText\fetchElement(), JElementEditors\fetchElement(), JElementHelpsites\fetchElement(), JElementHidden\fetchElement(), JElementMenuItem\fetchElement(), JElementLanguages\fetchElement(), JElementTimezones\fetchElement(), JElementCalendar\fetchElement(), JElementSpacer\fetchElement(), JElement\fetchElement(), JElementHidden\fetchTooltip(), JElement\fetchTooltip(), JUpdaterExtension\findUpdate(), JUpdaterCollection\findUpdate(), JAccess\getActions(), JXMLElement\getAttribute(), JNode\getChildren(), JSimpleXMLElement\getElementByPath(), JError\getError(), JException\getError(), JError\getErrorHandling(), JDatabase\getErrorMsg(), JDatabase\getErrorNum(), JError\getErrors(), JException\getErrors(), JDatabase\getEscaped(), JBrowser\getFeature(), JParameter\getGroups(), JUtility\getHash(), JPane\getInstance(), getInstance(), JDatabase\getInstance(), multilangstatusHelper\getLangfilter(), JElement\getName(), JRegistry\getNameSpaces(), JParameter\getNumParams(), JFormFieldEditors\getOptions(), JInstaller\getOverwrite(), JParameter\getParam(), JParameter\getParams(), JTree\getParent(), JNode\getParent(), JSimpleXML\getParser(), JLanguage\getPluralSufficesCallback(), JBrowser\getQuirk(), JDatabase\getTableFields(), JUtility\getToken(), JInstaller\getUpgrade(), JRegistry\getValue(), JFactory\getXMLParser(), JError\handleCallback(), JError\handleDie(), JError\handleEcho(), JError\handleIgnore(), JError\handleLog(), JError\handleMessage(), JError\handleVerbose(), JNode\hasChildren(), JBrowser\hasFeature(), JNode\hasParent(), JBrowser\hasQuirk(), JDatabaseMySQLi\hasUTF(), JDatabaseMySQL\hasUTF(), JSimpleXML\importDOM(), JApplicationDaemon\isActive(), JError\isError(), FinderHelperLanguage\isMultiLanguage(), JDatabase\isQuoted(), JUtility\isWinOS(), JSimpleXMLElement\level(), JSimpleXML\loadFile(), JRegistry\loadINI(), JRegistry\loadJSON(), JDatabase\loadResultArray(), JRegistry\loadSetupFile(), JSimpleXML\loadString(), JRegistry\loadXML(), JRegistry\makeNameSpace(), JSimpleXMLElement\map(), JHtmlBehavior\mootools(), JXMLElement\name(), JSimpleXMLElement\name(), JDatabase\nameQuote(), plgSystemRemember\onAfterInitialise(), JHtmlSelect\optgroup(), JApplicationHelper\parseXMLInstallFile(), JDatabaseMySQLi\queryBatch(), JDatabaseMySQL\queryBatch(), JDatabaseSQLSrv\queryBatch(), JError\raise(), JError\raiseError(), JError\raiseNotice(), JError\raiseWarning(), JError\registerErrorLevel(), JSimpleXMLElement\removeAttribute(), JSimpleXMLElement\removeChild(), JElement\render(), JParameter\render(), JError\renderBacktrace(), JComponentHelper\renderComponent(), JParameter\renderToArray(), JTree\reset(), JUtility\return_bytes(), JHtml\script(), JUtility\sendAdminMail(), JUtility\sendMail(), JException\set(), JController\setAccessControl(), JSimpleXMLElement\setData(), JException\setError(), JError\setErrorHandling(), JBrowser\setFeature(), JDate\setOffset(), JNode\setParent(), JSimpleXML\setParser(), JException\setProperties(), JBrowser\setQuirk(), JRegistry\setValue(), JParameter\setXML(), JHtmlImage\site(), JPaneTabs\startPane(), JPaneSliders\startPane(), JPaneTabs\startPanel(), JPaneSliders\startPanel(), JDatabase\stderr(), JRegistryFormatJSON\stringToObject(), JHtml\stylesheet(), JError\throwError(), JDate\toFormat(), JDate\toMySQL(), JObject\toString(), JSimpleXMLElement\toString(), JTableContent\toXML(), JTable\toXML(), et JError\translateErrorLevel().


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