src/LoggyMiddleware.php
protected function buildHandlers(array $config):array
    {
        $handlers = [];
        foreach ($config as $handler) {
            $level = constant('\Mostofreddy\Loggy\Logger::'. strtoupper($handler['level']));
            $handlerObj = '\Mostofreddy\Loggy\Handler\\'.ucfirst($handler['handler']);
            $handlers[] = (new $handlerObj($level))->config($handler);
        }
        return $handlers;
    }
protected function buildHandlers(array $config):array
    {
        $handlers = [];
        foreach ($config as $handler) {
            $level = constant('\Mostofreddy\Loggy\Logger::'. strtoupper($handler['level']));
            $handlerObj = '\Mostofreddy\Loggy\Handler\\'.ucfirst($handler['handler']);
            $handlers[] = (new $handlerObj($level))->config($handler);
        }
        return $handlers;
    }
protected function buildHandlers ( array $ config ) : array { $ handlers = [ ] ; foreach ( $ config as $ handler ) { $ level = constant ( '\Mostofreddy\Loggy\Logger::' . strtoupper ( $ handler [ 'level' ] ) ) ; $ handlerObj = '\Mostofreddy\Loggy\Handler\\' . ucfirst ( $ handler [ 'handler' ] ) ; $ handlers [ ] = ( new $ handlerObj ( $ level ) ) -> config ( $ handler ) ; } return $ handlers ; }
Instancia los handlers del logger

@param array $config Configuracion de los handlers del logger

@return array
Instancia los handlers del logger