protected function createLogHandlers() {
        $logHandlers = $this->configuredLogHandlers;
                      
        foreach ($logHandlers as $handlerNamespace => $handlerDetails) {
            if (
                is_array($handlerDetails)
                && array_key_exists('handler_parameters', $handlerDetails)
            ) {
                $handlerParameters = $handlerDetails['handler_parameters'];
                $handlerObj = new $handlerNamespace(...$handlerParameters);
                $this->concreteLogger->pushHandler($handlerObj);
            }
        }
    }
protected function createLogHandlers() {
        $logHandlers = $this->configuredLogHandlers;
                      
        foreach ($logHandlers as $handlerNamespace => $handlerDetails) {
            if (
                is_array($handlerDetails)
                && array_key_exists('handler_parameters', $handlerDetails)
            ) {
                $handlerParameters = $handlerDetails['handler_parameters'];
                $handlerObj = new $handlerNamespace(...$handlerParameters);
                $this->concreteLogger->pushHandler($handlerObj);
            }
        }
    }
protected function createLogHandlers ( ) { $ logHandlers = $ this -> configuredLogHandlers ; foreach ( $ logHandlers as $ handlerNamespace => $ handlerDetails ) { if ( is_array ( $ handlerDetails ) && array_key_exists ( 'handler_parameters' , $ handlerDetails ) ) { $ handlerParameters = $ handlerDetails [ 'handler_parameters' ] ; $ handlerObj = new $ handlerNamespace ( ... $ handlerParameters ) ; $ this -> concreteLogger -> pushHandler ( $ handlerObj ) ; } } }
Iterate the configured log handlers and create concrete handlers
Iterate the configured log handlers and create concrete handlers