Program_Root/log4php/LoggerManager.php

Description

log4php is a PHP port of the log4j java logging package.

log4php is a PHP port of the log4j java logging package. This framework is based on log4j (see http://jakarta.apache.org/log4j for details).

Design, strategies and part of the methods documentation are developed by log4j team (Ceki Gulcu as log4j project founder and http://jakarta.apache.org/log4j/docs/contributors.html).

PHP port, extensions and modifications by VxR. All rights reserved.
For more information, please see http://www.vxr.it/log4php/.

This software is published under the terms of the LGPL License a copy of which has been included with this distribution in the LICENSE file.

Classes
Class Description
LoggerManager Use the LoggerManager to get Logger instances.
Includes
require_once (LOG4PHP_DIR.'/LoggerHierarchy.php') (line 29)
Constants
LOG4PHP_CONFIGURATION = 'log4php.properties' (line 85)

Configuration file.

Configuration file. This constant tells configurator classes where the configuration file is located.

If not set by user, log4php tries to set it automatically using (in order):

  • the

    1 $_ENV['log4php.configuration']
    enviroment variable.
  • defaults to 'log4php.properties'.

LOG4PHP_CONFIGURATOR_CLASS = LOG4PHP_DIR.'/LoggerPropertyConfigurator' (line 113)

Holds the configurator class name.

Holds the configurator class name. This constant is set with the fullname (path included but non the .php extension) of the configurator class that init procedure will use.

If not set by user, log4php tries to set it automatically.

If LOG4PHP_CONFIGURATION has '.xml' extension set the constants to 'LOG4PHP_DIR/xml/LoggerDOMConfigurator'.

Otherwise set the constants to 'LOG4PHP_DIR/LoggerPropertyConfigurator'.

Security Note: classfile pointed by this constant will be brutally included with a:


1 @include_once(LOG4PHP_CONFIGURATOR_CLASS . ".php");

LOG4PHP_DEFAULT_INIT_OVERRIDE = false (line 61)

Controls init execution With this constant users can skip the default init procedure that is called when this file is included.

Controls init execution With this constant users can skip the default init procedure that is called when this file is included. If it is not user defined, log4php tries to autoconfigure using (in order):

  • the

    1 $_ENV['log4php.defaultInitOverride']
    variable.
  • the

    1 $GLOBALS['log4php.defaultInitOverride']
    global variable.
  • defaults to false

LOG4PHP_DIR = dirname(__FILE__) (line 27)

LOG4PHP_DIR points to the log4php root directory.

LOG4PHP_DIR points to the log4php root directory. If not defined it will be set automatically when the first package classfile is included

Functions
LoggerManagerDefaultInit (line 133)

Default init procedure

Default init procedure This procedure tries to configure the LoggerHierarchy using the configurator class defined via LOG4PHP_CONFIGURATOR_CLASS that tries to load the configurator file defined in LOG4PHP_CONFIGURATION.

If something goes wrong a warn is raised.

boolean LoggerManagerDefaultInit ()

Documentation generated on Mon, 15 Sep 2003 21:13:02 +0200 by phpDocumentor 1.2.2