Located in File: Program_Root/LoggerHierarchy.php
The casual user does not have to deal with this class directly.
The structure of the logger hierarchy is maintained by the getLogger method. The hierarchy is such that children link to their parent but parents do not have any pointers to their children. Moreover, loggers can be instantiated in any order, in particular descendant before ancestor.
In case a descendant is created before a particular ancestor, then it creates a provision node for the ancestor and adds itself to the provision node. Other descendants of the same ancestor add themselves to the previously created provision node.
$Revision: 1.7 $Marco Vassura| Class Variable Summary |
$debug
Default Value:
|
$defaultFactory
Default Value:
|
$emittedNoAppenderWarning
Default Value:
|
$emittedNoResourceBundleWarning
Default Value:
|
$ht
Default Value:
|
$parser
Default Value:
|
$root
Default Value:
|
$threshold
Default Value:
|
| Inherited Class Variable Summary |
| Method Summary |
void constructor LoggerHierarchy ( $root )
Create a new logger hierarchy. |
void addHierarchyEventListener ( $listener )
Add a HierarchyEventListener event to the repository. |
void addRenderer ( $classToRender, $or )
Add an object renderer for a specific class. |
void clear ( )
This call will clear all logger definitions from the internal hashtable. |
void emitNoAppenderWarning ( $cat )
|
void exists ( $name )
Check if the named logger exists in the hierarchy. |
void fireAddAppenderEvent ( $logger, $appender )
|
void getCurrentCategories ( )
|
void getCurrentLoggers ( )
Returns all the currently defined categories in this hierarchy as an Enumeration. |
instance &getLogger ( $name )
Return a new logger instance named as the first parameter using the default factory. |
void &getParser ( )
|
void getRendererMap ( )
Get the renderer map for this hierarchy. |
void &getRootLogger ( )
Get the root of this hierarchy. |
void getThreshold ( )
Returns a Level representation of the enable state. |
void isDisabled ( $level )
This method will return true if this repository is disabled for level object passed as parameter and false otherwise. |
void overrideAsNeeded ( $override )
|
void resetConfiguration ( )
Reset all values contained in this hierarchy instance to their default. |
void setDisableOverride ( $override )
|
void setRenderer ( $renderedClass, $renderer )
Used by subclasses to add a renderer to the hierarchy passed as parameter. |
void setThreshold ( $l )
set a new threshold level |
void shutdown ( )
Shutting down a hierarchy will safely close and remove all appenders in all categories including the root logger |
| Inherited Method Summary |
| Method Detail |
void LoggerHierarchy( object $root)
Create a new logger hierarchy.- object $root: the root logger[ Top ]
void addHierarchyEventListener( mixed $listener)
Add a HierarchyEventListener event to the repository.Not Yet Impl.
[ Top ]
void addRenderer( mixed $classToRender, mixed $or)
Add an object renderer for a specific class.Not Yet Impl.
[ Top ]
void clear( )
This call will clear all logger definitions from the internal hashtable.[ Top ]
void emitNoAppenderWarning( mixed $cat)
[ Top ]
void exists( mixed $name)
Check if the named logger exists in the hierarchy.[ Top ]
void fireAddAppenderEvent( mixed $logger, mixed $appender)
[ Top ]
void getCurrentCategories( )
Please use getCurrentLoggers() instead.[ Top ]
void getCurrentLoggers( )
Returns all the currently defined categories in this hierarchy as an Enumeration.[ Top ]
instance &getLogger( string $name)
Return a new logger instance named as the first parameter using the default factory.- string $name: logger nameLogger[ Top ]
void &getParser( )
[ Top ]
void getRendererMap( )
Get the renderer map for this hierarchy.[ Top ]
void &getRootLogger( )
Get the root of this hierarchy.[ Top ]
void getThreshold( )
Returns a Level representation of the enable state.[ Top ]
void isDisabled( mixed $level)
This method will return true if this repository is disabled for level object passed as parameter and false otherwise.[ Top ]
void overrideAsNeeded( mixed $override)
Deprecated with no replacement.[ Top ]
void resetConfiguration( )
Reset all values contained in this hierarchy instance to their default.[ Top ]
void setDisableOverride( mixed $override)
Deprecated with no replacement.[ Top ]
void setRenderer( mixed $renderedClass, mixed $renderer)
Used by subclasses to add a renderer to the hierarchy passed as parameter.[ Top ]
void setThreshold( mixed $l, integer $i)
set a new threshold level- integer $i: [ Top ]
void shutdown( )
Shutting down a hierarchy will safely close and remove all appenders in all categories including the root logger[ Top ]
| Variable Detail |
activate internal loggingLoggerLog[ Top ]
unused[ Top ]
currently unused[ Top ]
currently unused[ Top ]
hierarchy tree. saves here all loggers[ Top ]
LoggerConfigXmlParser[ Top ]
LoggerRoot[ Top ]
main level thresholdLoggerConfigXmlParser::xmltag_config()[ Top ]