Class LoggerAppender

Description

Abstract class that defines output logs strategies.

Abstract class that defines output logs strategies.

Located in Program_Root/log4php/LoggerAppender.php (line 32)


	
			
Direct descendents
Class Description
LoggerAppenderSkeleton Abstract superclass of the other appenders in the package.
Method Summary
void addFilter (LoggerFilter $newFilter)
void clearFilters ()
void close ()
void doAppend (LoggerLoggingEvent $event)
LoggerAppender factory (string $name, string $class)
object Returns &getErrorHandler ()
Filter &getFilter ()
string getName ()
boolean requiresLayout ()
void setErrorHandler (object $errorHandler)
void setLayout (LoggerLayout $layout)
void setName (string $name)
LoggerAppender &singleton (string $name, [string $class = ''])
Methods
addFilter (line 90)

Add a filter to the end of the filter list.

Add a filter to the end of the filter list.

  • abstract:
void addFilter (LoggerFilter $newFilter)

Redefined in descendants as:
clearFilters (line 99)

Clear the list of filters by removing all the filters in it.

Clear the list of filters by removing all the filters in it.

  • abstract:
void clearFilters ()

Redefined in descendants as:
close (line 120)

Release any resources allocated.

Release any resources allocated. Subclasses of LoggerAppender should implement this method to perform proper closing procedures.

  • abstract:
void close ()

Redefined in descendants as:
doAppend (line 131)

This method performs threshold checks and invokes filters before delegating actual logging to the subclasses specific append() method.

This method performs threshold checks and invokes filters before delegating actual logging to the subclasses specific append() method.

  • abstract:
void doAppend (LoggerLoggingEvent $event)

Redefined in descendants as:
factory (line 41)

Factory

Factory

LoggerAppender factory (string $name, string $class)
  • string $name: appender name
  • string $class: create an instance of this appender class
getErrorHandler (line 159)

Do not use this method.

Do not use this method.

  • return: the ErrorHandler for this appender.
object Returns &getErrorHandler ()

Redefined in descendants as:
getFilter (line 109)

Return the first filter in the filter chain for this Appender.

Return the first filter in the filter chain for this Appender. The return value may be null if no is filter is set.

Filter &getFilter ()

Redefined in descendants as:
getLayout (line 178)

Returns this appender layout.

Returns this appender layout.

LoggerLayout &getLayout ()

Redefined in descendants as:
getName (line 140)

Get the name of this appender.

Get the name of this appender.

string getName ()

Redefined in descendants as:
requiresLayout (line 212)

Configurators call this method to determine if the appender requires a layout.

Configurators call this method to determine if the appender requires a layout. If this method returns true, meaning that layout is required, then the configurator will configure a layout using the configuration information at its disposal. If this method returns false, meaning that a layout is not required, then layout configuration will be skipped even if there is available layout configuration information at the disposal of the configurator.

In the rather exceptional case, where the appender implementation admits a layout but can also work without it, then the appender should return true.

boolean requiresLayout ()

Redefined in descendants as:
setErrorHandler (line 150)

Do not use this method.

Do not use this method.

void setErrorHandler (object $errorHandler)
  • object $errorHandler

Redefined in descendants as:
setLayout (line 169)

Set the Layout for this appender.

Set the Layout for this appender.

void setLayout (LoggerLayout $layout)

Redefined in descendants as:
setName (line 190)

Set the name of this appender.

Set the name of this appender. The name is used by other components to identify this appender.

void setName (string $name)
  • string $name

Redefined in descendants as:
singleton (line 60)

Singleton

Singleton

LoggerAppender &singleton (string $name, [string $class = ''])
  • string $name: appender name
  • string $class: create or get a reference instance of this class

Documentation generated on Tue, 28 Oct 2003 22:03:34 +0100 by phpDocumentor 1.2.2