mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
parent
3ade6da44d
commit
70cf14f775
@ -52,7 +52,7 @@ class Logger
|
|||||||
$this->verbosity = $config->level;
|
$this->verbosity = $config->level;
|
||||||
|
|
||||||
if ($config->enable) {
|
if ($config->enable) {
|
||||||
$this->writer = $this->getWriter($config);
|
$this->writer = $this->createWriter($config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ class Logger
|
|||||||
*
|
*
|
||||||
* @throws ConfigurationError In case the requested writer cannot be found
|
* @throws ConfigurationError In case the requested writer cannot be found
|
||||||
*/
|
*/
|
||||||
protected function getWriter(Zend_Config $config)
|
protected function createWriter(Zend_Config $config)
|
||||||
{
|
{
|
||||||
$class = 'Icinga\\Logger\\Writer\\' . ucfirst(strtolower($config->type)) . 'Writer';
|
$class = 'Icinga\\Logger\\Writer\\' . ucfirst(strtolower($config->type)) . 'Writer';
|
||||||
if (!class_exists($class)) {
|
if (!class_exists($class)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user