[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
[Code source] [Imprimer] [Statistiques]
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: | 388 lignes (12 kb) |
Inclus ou requis: | 1 fois |
Référencé: | 0 fois |
Nécessite: | 5 fichiers log4php/or/LoggerRendererMap.php log4php/LoggerLevel.php log4php/LoggerDefaultCategoryFactory.php log4php/LoggerLog.php log4php/LoggerRoot.php |
LoggerHierarchy:: (22 méthodes):
singleton()
LoggerHierarchy()
addHierarchyEventListener()
addRenderer()
clear()
emitNoAppenderWarning()
exists()
fireAddAppenderEvent()
getCurrentCategories()
getCurrentLoggers()
getLogger()
getLoggerByFactory()
getRendererMap()
getRootLogger()
getThreshold()
isDisabled()
overrideAsNeeded()
resetConfiguration()
setDisableOverride()
setRenderer()
setThreshold()
shutdown()
Classe: LoggerHierarchy - X-Ref
This class is specialized in retrieving loggers by name and also maintainingsingleton() X-Ref |
LoggerHierarchy($root) X-Ref |
Create a new logger hierarchy. param: object $root the root logger |
addHierarchyEventListener($listener) X-Ref |
Add a HierarchyEventListener event to the repository. Not Yet Impl. |
addRenderer($classToRender, $or) X-Ref |
Add an object renderer for a specific class. Not Yet Impl. |
clear() X-Ref |
This call will clear all logger definitions from the internal hashtable. |
emitNoAppenderWarning($cat) X-Ref |
Pas de description |
exists($name) X-Ref |
Check if the named logger exists in the hierarchy. param: string $name return: boolean |
fireAddAppenderEvent($logger, $appender) X-Ref |
Pas de description |
getCurrentCategories() X-Ref |
getCurrentLoggers() X-Ref |
Returns all the currently defined categories in this hierarchy as an array. return: array |
getLogger($name, $factory = null) X-Ref |
Return a new logger instance named as the first parameter using the default factory. param: string $name logger name param: LoggerFactory $factory a {@link LoggerFactory} instance or null return: Logger |
getLoggerByFactory($name, $factory) X-Ref |
Return a new logger instance named as the first parameter using the default factory. param: string $name logger name return: Logger |
getRendererMap() X-Ref |
return: LoggerRendererMap Get the renderer map for this hierarchy. |
getRootLogger() X-Ref |
return: LoggerRoot Get the root of this hierarchy. |
getThreshold() X-Ref |
return: LoggerLevel Returns the threshold Level. |
isDisabled($level) X-Ref |
This method will return true if this repository is disabled for level object passed as parameter and false otherwise. return: boolean |
overrideAsNeeded($override) X-Ref |
resetConfiguration() X-Ref |
Reset all values contained in this hierarchy instance to their default. This removes all appenders from all categories, sets the level of all non-root categories to <i>null</i>, sets their additivity flag to <i>true</i> and sets the level of the root logger to {@link LOGGER_LEVEL_DEBUG}. Moreover, message disabling is set its default "off" value. <p>Existing categories are not removed. They are just reset. <p>This method should be used sparingly and with care as it will block all logging until it is completed.</p> |
setDisableOverride($override) X-Ref |
setRenderer($renderedClass, $renderer) X-Ref |
Used by subclasses to add a renderer to the hierarchy passed as parameter. param: string $renderedClass a LoggerRenderer class name param: LoggerRenderer $renderer |
setThreshold($l) X-Ref |
set a new threshold level param: LoggerLevel $l |
shutdown() X-Ref |
Shutting down a hierarchy will <i>safely</i> close and remove all appenders in all categories including the root logger. <p>Some appenders such as {@link LoggerSocketAppender} need to be closed before the application exists. Otherwise, pending logging events might be lost. <p>The shutdown method is careful to close nested appenders before closing regular appenders. This is allows configurations where a regular appender is attached to a logger and again to a nested appender. |
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |