public static function loadConfiguration($force = false)
    {
        if ($force === false && static::$isConfigurationLoaded === true)
        {
            return true;
        }

        if (class_exists('\Bitrix\Main\Config\Configuration'))
        {
            $config = Configuration::getInstance()->get('monolog');

            if (is_array($config) && !empty($config))
            {
                Cascade::fileConfig($config);

                return true;
            }
        }

        return false;
    }
public static function loadConfiguration($force = false)
    {
        if ($force === false && static::$isConfigurationLoaded === true)
        {
            return true;
        }

        if (class_exists('\Bitrix\Main\Config\Configuration'))
        {
            $config = Configuration::getInstance()->get('monolog');

            if (is_array($config) && !empty($config))
            {
                Cascade::fileConfig($config);

                return true;
            }
        }

        return false;
    }
public static function loadConfiguration ( $ force = false ) { if ( $ force === false && static :: $ isConfigurationLoaded === true ) { return true ; } if ( class_exists ( '\Bitrix\Main\Config\Configuration' ) ) { $ config = Configuration :: getInstance ( ) -> get ( 'monolog' ) ; if ( is_array ( $ config ) && ! empty ( $ config ) ) { Cascade :: fileConfig ( $ config ) ; return true ; } } return false ; }
Load a configuration for the loggers from `.settings.php` or `.settings_extra.php`.

@param bool $force Load even if the configuration has already been loaded.

@return bool
Load a configuration for the loggers from . settings . php or . settings_extra . php .