/LoggerManager.php

Description

Copyright 2004 The Apache Software Foundation.

This software is published under the terms of the Apache Software License version 2.0, 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 22)
Constants
LOG4PHP_CONFIGURATION = 'log4php.properties' (line 184)

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

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

Controls init execution

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

<p>If it is not user defined, log4php tries to autoconfigure using (in order):</p>

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

LOG4PHP_DIR = dirname(__FILE__) (line 20)

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

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.

Users can skip this procedure using LOG4PHP_DEFAULT_INIT_OVERRIDE constant.

boolean LoggerManagerDefaultInit ()

Documentation generated by phpDocumentor 1.3.2