Overview

Namespaces

  • Genetsis
    • core
      • activityid
      • user
  • None

Classes

  • Logger
  • LoggerAppender
  • LoggerAppenderConsole
  • LoggerAppenderDailyFile
  • LoggerAppenderDailyRollingFile
  • LoggerAppenderEcho
  • LoggerAppenderFile
  • LoggerAppenderFirePHP
  • LoggerAppenderMail
  • LoggerAppenderMailEvent
  • LoggerAppenderMongoDB
  • LoggerAppenderNull
  • LoggerAppenderPDO
  • LoggerAppenderPhp
  • LoggerAppenderPool
  • LoggerAppenderRollingFile
  • LoggerAppenderSocket
  • LoggerAppenderSyslog
  • LoggerAutoloader
  • LoggerConfigurable
  • LoggerConfigurationAdapterINI
  • LoggerConfigurationAdapterPHP
  • LoggerConfigurationAdapterXML
  • LoggerConfiguratorDefault
  • LoggerFilter
  • LoggerFilterDenyAll
  • LoggerFilterLevelMatch
  • LoggerFilterLevelRange
  • LoggerFilterStringMatch
  • LoggerFormattingInfo
  • LoggerHierarchy
  • LoggerLayout
  • LoggerLayoutHtml
  • LoggerLayoutPattern
  • LoggerLayoutSerialized
  • LoggerLayoutSimple
  • LoggerLayoutTTCC
  • LoggerLayoutXml
  • LoggerLevel
  • LoggerLocationInfo
  • LoggerLoggingEvent
  • LoggerMDC
  • LoggerNDC
  • LoggerOptionConverter
  • LoggerPatternConverter
  • LoggerPatternConverterClass
  • LoggerPatternConverterCookie
  • LoggerPatternConverterDate
  • LoggerPatternConverterEnvironment
  • LoggerPatternConverterFile
  • LoggerPatternConverterLevel
  • LoggerPatternConverterLine
  • LoggerPatternConverterLiteral
  • LoggerPatternConverterLocation
  • LoggerPatternConverterLogger
  • LoggerPatternConverterMDC
  • LoggerPatternConverterMessage
  • LoggerPatternConverterMethod
  • LoggerPatternConverterNDC
  • LoggerPatternConverterNewLine
  • LoggerPatternConverterProcess
  • LoggerPatternConverterRelative
  • LoggerPatternConverterRequest
  • LoggerPatternConverterServer
  • LoggerPatternConverterSession
  • LoggerPatternConverterSessionID
  • LoggerPatternConverterSuperglobal
  • LoggerPatternConverterThrowable
  • LoggerPatternParser
  • LoggerReflectionUtils
  • LoggerRendererDefault
  • LoggerRendererException
  • LoggerRendererMap
  • LoggerRoot
  • LoggerThrowableInformation
  • LoggerUtils

Interfaces

  • LoggerConfigurationAdapter
  • LoggerConfigurator
  • LoggerRenderer

Exceptions

  • LoggerException
  • Overview
  • Namespace
  • Class

Class LoggerConfiguratorDefault

Default implementation of the logger configurator.

Configures log4php based on a provided configuration file or array.

LoggerConfiguratorDefault implements LoggerConfigurator
Package: log4php
License: Apache License, Version 2.0
Version: $Revision: 1394956 $
Since: 2.2
Located at core/log4php/configurators/LoggerConfiguratorDefault.php
Methods summary
public
# configure( LoggerHierarchy $hierarchy, string|array $input = null )

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.

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.

Parameters

$hierarchy

The hierarchy on which to perform the configuration.

$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()
public array
# parse( string|array $input )

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

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).

Parameters

$input

Either path to the config file or the configuration as an array. If not set, default configuration will be used.

Returns

array
The parsed configuration.
public static array
# getDefaultConfiguration( )

Returns the default log4php configuration.

Returns the default log4php configuration.

Returns

array
Constants summary
string FORMAT_XML

XML configuration file format.

XML configuration file format.

# 'xml'
string FORMAT_PHP

PHP configuration file format.

PHP configuration file format.

# 'php'
string FORMAT_INI

INI (properties) configuration file format.

INI (properties) configuration file format.

# 'ini'
API documentation generated by ApiGen