Class LoggerDOMConfigurator

Description

Use this class to initialize the log4php environment using expat parser.

Use this class to initialize the log4php environment using expat parser. Read the log4php.dtd included in the documentation directory. Note that php parser does not validate the document.

Sometimes it is useful to see how log4php is reading configuration files. You can enable log4php internal logging by setting the debug attribute in the log4php:configuration element. As in

 <log4php:configuration debug="true" xmlns:log4php="http://www.vxr.it/log4php/">
 ...
 </log4php:configuration>
 

There are sample XML files included in the package under tests/ subdirectories.

Located in Program_Root/log4php/xml/LoggerDOMConfigurator.php (line 76)

LoggerConfigurator
   |
   --LoggerDOMConfigurator
Variable Summary
Method Summary
LoggerDOMConfigurator LoggerDOMConfigurator ()
void configure ([string $url = ''])
void doConfigure ([string $url = ''], LoggerHierarchy &$repository)
void doConfigureByString (string $xmlData, LoggerHierarchy &$repository)
void doConfigureDefault (LoggerHierarchy &$repository)
void parse (string $xmlData, mixed &$repository)
void setter (object &$object, string $name, mixed $value)
void subst (mixed $value)
void tagClose (mixed $parser, string $tag)
void tagOpen (mixed $parser, string $tag, mixed $attribs, array $attribs )
Variables
LoggerAppender $appender (line 96)
  • var: parsed LoggerAppender
LoggerFilter $filter (line 101)
  • var: parsed LoggerFilter
LoggerLayout $layout (line 106)
  • var: parsed LoggerLayout
Logger $logger (line 91)
  • var: parsed Logger
LoggerHierarchy $repository (line 81)
array $state (line 86)
  • var: state stack
Methods
Constructor LoggerDOMConfigurator (line 111)

Constructor

Constructor

LoggerDOMConfigurator LoggerDOMConfigurator ()
configure (line 129)

Configure the default repository using the resource pointed by url.

Configure the default repository using the resource pointed by url. Url is any valid resurce as defined in http://www.php.net/file function. Note that the resource will be search with use_include_path parameter set to "1".

  • static:
void configure ([string $url = ''])
  • string $url
doConfigure (line 145)

Configure the given repository using the resource pointed by url.

Configure the given repository using the resource pointed by url. Url is any valid resurce as defined in http://www.php.net/file function. Note that the resource will be search with use_include_path parameter set to "1".

void doConfigure ([string $url = ''], LoggerHierarchy &$repository)

Redefinition of:
LoggerConfigurator::doConfigure()
Interpret a resource pointed by a url and configure accordingly.
doConfigureByString (line 159)

Configure the given repository using the configuration written in xmlData.

Configure the given repository using the configuration written in xmlData. Do not call this method directly. Use doConfigure() instead.

void doConfigureByString (string $xmlData, LoggerHierarchy &$repository)
doConfigureDefault (line 167)
void doConfigureDefault (LoggerHierarchy &$repository)
parse (line 175)
void parse (string $xmlData, mixed &$repository)
  • string $xmlData
setter (line 578)
void setter (object &$object, string $name, mixed $value)
  • object $object
  • string $name
  • mixed $value
subst (line 594)
void subst (mixed $value)
tagClose (line 499)
void tagClose (mixed $parser, string $tag)
  • mixed $parser
  • string $tag
tagOpen (line 208)
  • todo: In 'LOGGER' case find a better way to detect 'getLogger()' method
void tagOpen (mixed $parser, string $tag, mixed $attribs, array $attribs )
  • mixed $parser
  • string $tag
  • array $attribs

Inherited Methods

Inherited From LoggerConfigurator

LoggerConfigurator::doConfigure()

Documentation generated on Mon, 1 Dec 2003 22:09:51 +0100 by phpDocumentor 1.2.2