lithium\analysis\Logger::_initConfig PHP Méthode

_initConfig() protected static méthode

This method is called automatically to initialize the default configuration of a log adapter, such that the adapter defaults to accepting log messages of any priority (i.e. the 'priority' key is set to true).
protected static _initConfig ( string $name, array $config ) : array
$name string The name of the logger configuration.
$config array The logger configuration as specified in application code.
Résultat array Returns an array of configuration data, merged with default values.
    protected static function _initConfig($name, $config)
    {
        $defaults = array('priority' => true);
        return parent::_initConfig($name, $config) + $defaults;
    }