## Class LoggerAppenderPool

Description

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.

- version: $Revision: 1350602 $

Located in /log4php/LoggerAppenderPool.php (line 32)

Variable Summary
static mixed $appenders
Method Summary
static void add (LoggerAppender $appender)
static void clear ()
static void delete (string $name)
static boolean exists (string $name)
static LoggerAppender get (string $name)
static array getAppenders ()
Variables
static mixed $appenders = array() (line 35)

Holds appenders indexed by their name

- access: public

Methods
static method add (line 42)

Adds an appender to the pool.

The appender must be named for this operation.

- access: public

static void add (LoggerAppender $appender)

- LoggerAppender $appender

static method clear (line 95)

Clears all appenders from the pool.

- access: public

static void clear ()
static method delete (line 71)

Removes an appender from the pool by name.

- access: public

static void delete (string $name)

- string $name: Name of the appender to remove.

static method exists (line 88)

Checks whether an appender exists in the pool.

- return: TRUE if the appender with the given name exists.
- access: public

static boolean exists (string $name)

- string $name: Name of the appender to look for.

static method get (line 63)

Retrieves an appender from the pool by name.

- return: The named appender or NULL if no such appender exists in the pool.
- access: public

static LoggerAppender get (string $name)

- string $name: Name of the appender to retrieve.

static method getAppenders (line 79)

Returns all appenders from the pool.

- return: Array of LoggerAppender objects.
- access: public

static array getAppenders ()

Documentation generated on Mon, 02 Feb 2026 13:59:50 +0900 by phpDocumentor 1.4.4