# Class LoggerAppenderPool

Pool implmentation for LoggerAppender instances.

The pool is used when configuring log4php. First all appender instances are created in the pool. Afterward, they are linked to loggers, each appender can be linked to multiple loggers. This makes sure duplicate appenders are not created.

Package: log4php
Version: $Revision: 1350602 $
Located at LoggerAppenderPool.php

Methods summary
`public static` | # `add( `LoggerAppender` $appender )` Adds an appender to the pool. The appender must be named for this operation. Adds an appender to the pool. The appender must be named for this operation. #### Parameters $appender ``LoggerAppender`` $appender
`public static `LoggerAppender`` | # `get( string $name )` Retrieves an appender from the pool by name. Retrieves an appender from the pool by name. #### Parameters $name `string` $name Name of the appender to retrieve. #### Returns ``LoggerAppender`` The named appender or NULL if no such appender exists in the pool.
`public static` | # `delete( string $name )` Removes an appender from the pool by name. Removes an appender from the pool by name. #### Parameters $name `string` $name Name of the appender to remove.
`public static array` | # `getAppenders( )` Returns all appenders from the pool. Returns all appenders from the pool. #### Returns `array` Array of LoggerAppender objects.
`public static boolean` | # `exists( string $name )` Checks whether an appender exists in the pool. Checks whether an appender exists in the pool. #### Parameters $name `string` $name Name of the appender to look for. #### Returns `boolean` TRUE if the appender with the given name exists.
`public static` | # `clear( )` Clears all appenders from the pool. Clears all appenders from the pool.

Properties summary
`public static array` | $appenders | `array()` | # Holds appenders indexed by their name Holds appenders indexed by their name