public function addNewHandler(array $handlerInfos)
    {
        $this->checkHandlerInfos($handlerInfos);
        
        $handlerClassName = $handlerInfos['name'];
        $handler          = new $handlerClassName(...$handlerInfos['args']);
        
        $this->handlers[] = $handler;
        $this->logger->pushHandler($handler);
    }
public function addNewHandler(array $handlerInfos)
    {
        $this->checkHandlerInfos($handlerInfos);
        
        $handlerClassName = $handlerInfos['name'];
        $handler          = new $handlerClassName(...$handlerInfos['args']);
        
        $this->handlers[] = $handler;
        $this->logger->pushHandler($handler);
    }
public function addNewHandler ( array $ handlerInfos ) { $ this -> checkHandlerInfos ( $ handlerInfos ) ; $ handlerClassName = $ handlerInfos [ 'name' ] ; $ handler = new $ handlerClassName ( ... $ handlerInfos [ 'args' ] ) ; $ this -> handlers [ ] = $ handler ; $ this -> logger -> pushHandler ( $ handler ) ; }
Check and add a new handler to the logger

@param array $handlerInfos Handler infos (name and args)

@throws \Exception

@return void
Check and add a new handler to the logger