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: 795727 $

Located in /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 add (line 42)

Adds an appender to the pool.

The appender must be named for this operation.

  • access: public
static void add (LoggerAppender $appender)
static clear (line 96)

Clears all appenders from the pool.

  • access: public
static void clear ()
static delete (line 72)

Removes an appender from the pool by name.

  • access: public
static void delete (string $name)
  • string $name: Name of the appender to remove.
static exists (line 89)

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 get (line 64)

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 getAppenders (line 80)

Returns all appenders from the pool.

  • return: Array of LoggerAppender objects.
  • access: public
static array getAppenders ()

Documentation generated on Sat, 18 Feb 2012 22:32:23 +0000 by phpDocumentor 1.4.3