[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/log4php/ -> LoggerCategory.php (sommaire)

log4php is a PHP port of the log4j java logging package. <p>This framework is based on log4j (see {@link http://jakarta.apache.org/log4j log4j} for details).</p> <p>Design, strategies and part of the methods documentation are developed by log4j team (Ceki Gülcü as log4j project founder and {@link http://jakarta.apache.org/log4j/docs/contributors.html contributors}).</p>

Poids: 572 lignes (16 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 log4php/spi/LoggerLoggingEvent.php
 log4php/LoggerLevel.php

Définit 1 class

LoggerCategory:: (42 méthodes):
  LoggerCategory()
  addAppender()
  assertLog()
  callAppenders()
  debug()
  error()
  exists()
  fatal()
  forcedLog()
  getAdditivity()
  getAllAppenders()
  getAppender()
  getChainedPriority()
  getCurrentCategories()
  getDefaultHierarchy()
  getHierarchy()
  getEffectiveLevel()
  getInstance()
  getLevel()
  getLoggerRepository()
  getName()
  getParent()
  getPriority()
  getResourceBundle()
  getResourceBundleString()
  getRoot()
  info()
  isAttached()
  isDebugEnabled()
  isEnabledFor()
  isInfoEnabled()
  l7dlog()
  log()
  removeAllAppenders()
  removeAppender()
  setAdditivity()
  setPriority()
  setHierarchy()
  setLevel()
  setResourceBundle()
  shutdown()
  warn()


Classe: LoggerCategory  - X-Ref

This class has been deprecated and replaced by the Logger subclass.

LoggerCategory($name)   X-Ref
Constructor.

param: string  $name  Category name   

addAppender(&$newAppender)   X-Ref
Add a new Appender to the list of appenders of this Category instance.

param: LoggerAppender $newAppender

assertLog($assertion = true, $msg = '')   X-Ref
If assertion parameter is false, then logs msg as an error statement.

param: bool $assertion
param: string $msg message to log

callAppenders($event)   X-Ref
Call the appenders in the hierarchy starting at this.

param: LoggerLoggingEvent $event

debug($message, $caller = null)   X-Ref
Log a message object with the DEBUG level including the caller.

param: mixed $message message
param: mixed $caller caller object or caller string id

error($message, $caller = null)   X-Ref
Log a message object with the ERROR level including the caller.

param: mixed $message message
param: mixed $caller caller object or caller string id

exists($name)   X-Ref
Deprecated. Please use LoggerManager::exists() instead.

param: string $name

fatal($message, $caller = null)   X-Ref
Log a message object with the FATAL level including the caller.

param: mixed $message message
param: mixed $caller caller object or caller string id

forcedLog($fqcn, $caller, $level, $message)   X-Ref
This method creates a new logging event and logs the event without further checks.

It should not be called directly. Use {@link info()}, {@link debug()}, {@link warn()},
{@link error()} and {@link fatal()} wrappers.

param: string $fqcn Fully Qualified Class Name of the Logger
param: mixed $caller caller object or caller string id
param: LoggerLevel $level log level     
param: mixed $message message

getAdditivity()   X-Ref
Get the additivity flag for this Category instance.

return: boolean

getAllAppenders()   X-Ref
Get the appenders contained in this category as an array.

return: array collection of appenders

getAppender($name)   X-Ref
Look for the appender named as name.

return: LoggerAppender

getChainedPriority()   X-Ref
Please use the {@link getEffectiveLevel()} method instead.


getCurrentCategories()   X-Ref
Please use {@link LoggerManager::getCurrentLoggers()} instead.


getDefaultHierarchy()   X-Ref
Please use {@link LoggerManager::getLoggerRepository()} instead.


getHierarchy()   X-Ref

return: LoggerHierarchy

getEffectiveLevel()   X-Ref
Starting from this category, search the category hierarchy for a non-null level and return it.

return: LoggerLevel or null

getInstance($name)   X-Ref
Retrieve a category with named as the name parameter.

return: Logger

getLevel()   X-Ref
Returns the assigned Level, if any, for this Category.

return: LoggerLevel or null

getLoggerRepository()   X-Ref
Return the the repository where this Category is attached.

return: LoggerHierarchy

getName()   X-Ref
Return the category name.

return: string

getParent()   X-Ref
Returns the parent of this category.

return: Logger

getPriority()   X-Ref
Please use getLevel() instead.


getResourceBundle()   X-Ref
Return the inherited ResourceBundle for this category.


getResourceBundleString($key)   X-Ref
Returns the string resource coresponding to key in this category's inherited resource bundle.


getRoot()   X-Ref
Return the root of the default category hierrachy.

return: LoggerRoot

info($message, $caller = null)   X-Ref
Log a message object with the INFO Level.

param: mixed $message message
param: mixed $caller caller object or caller string id

isAttached($appender)   X-Ref
Is the appender passed as parameter attached to this category?

param: LoggerAppender $appender

isDebugEnabled()   X-Ref
Check whether this category is enabled for the DEBUG Level.

return: boolean

isEnabledFor($level)   X-Ref
Check whether this category is enabled for a given Level passed as parameter.

param: LoggerLevel level
return: boolean

isInfoEnabled()   X-Ref
Check whether this category is enabled for the info Level.

return: boolean

l7dlog($priority, $key, $params, $t)   X-Ref
Log a localized and parameterized message.


log($priority, $message, $caller = null)   X-Ref
This generic form is intended to be used by wrappers.

param: LoggerLevel $priority a valid level
param: mixed $message message
param: mixed $caller caller object or caller string id

removeAllAppenders()   X-Ref
Remove all previously added appenders from this Category instance.


removeAppender($appender)   X-Ref
Remove the appender passed as parameter form the list of appenders.

param: mixed $appender can be an appender name or a {@link LoggerAppender} object

setAdditivity($additive)   X-Ref
Set the additivity flag for this Category instance.

param: boolean $additive

setPriority($priority)   X-Ref


setHierarchy(&$repository)   X-Ref
Only the Hiearchy class can set the hiearchy of a
category.

param: LoggerHierarchy &$repository

setLevel($level)   X-Ref
Set the level of this Category.

param: LoggerLevel $level a level string or a level costant

setResourceBundle($bundle)   X-Ref
Set the resource bundle to be used with localized logging methods


shutdown()   X-Ref


warn($message, $caller = null)   X-Ref
Log a message with the WARN level.

param: mixed $message message
param: mixed $caller caller object or caller string id



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7