## Class LoggerConfiguratorDefault

Description

Implements interfaces:

- LoggerConfigurator

Default implementation of the logger configurator.

Configures log4php based on a provided configuration file or array.

- version: $Revision: 1394956 $
- since: 2.2
- license: Apache License, Version 2.0

Located in /log4php/configurators/LoggerConfiguratorDefault.php (line 31)

Class Constant Summary
FORMAT_INI = 'ini'
FORMAT_PHP = 'php'
FORMAT_XML = 'xml'
Method Summary
static array getDefaultConfiguration ()
void configure (LoggerHierarchy $hierarchy, [string|array $input = null])
array parse (string|array $input)
Methods
static method getDefaultConfiguration (line 134)

Returns the default log4php configuration.

- access: public

static array getDefaultConfiguration ()
configure (line 82)

Configures log4php based on the given configuration. The input can either be a path to the config file, or a PHP array holding the configuration.

If no configuration is given, or if the given configuration cannot be parsed for whatever reason, a warning will be issued, and log4php will use the default configuration contained in $defaultConfiguration.

- access: public

void configure (LoggerHierarchy $hierarchy, [string|array $input = null])

- LoggerHierarchy $hierarchy: The hierarchy on which to perform the configuration.
- string|array $input: Either path to the config file or the configuration as an array. If not set, default configuration will be used.

Implementation of:

LoggerConfigurator::configure()
  Configures log4php based on the given configuration.

parse (line 100)

Parses the given configuration and returns the parsed configuration as a PHP array. Does not perform any configuration.

If no configuration is given, or if the given configuration cannot be parsed for whatever reason, a warning will be issued, and the default configuration will be returned ($defaultConfiguration).

- return: The parsed configuration.
- access: public

array parse (string|array $input)

- string|array $input: Either path to the config file or the configuration as an array. If not set, default configuration will be used.

Class Constants
FORMAT_INI = 'ini' (line 40)

INI (properties) configuration file format.

FORMAT_PHP = 'php' (line 37)

PHP configuration file format.

FORMAT_XML = 'xml' (line 34)

XML configuration file format.

Documentation generated on Wed, 12 Nov 2025 18:40:33 +0900 by phpDocumentor 1.4.4