lithium\analysis\Logger::_initConfig()
Overrides
lithium\core\Adaptable::_initConfig()
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
).
Parameters
-
string
$name
The name of the logger configuration.
-
array
$config
The logger configuration as specified in application code.
Returns
arrayReturns an array of configuration data, merged with default values.
Source
protected static function _initConfig($name, $config) {
$defaults = ['priority' => true];
return parent::_initConfig($name, $config) + $defaults;
}