public function create(OutputInterface $output) : LoggerInterface
    {
        $logger        = new Logger('browscap');
        $consoleLogger = new ConsoleLogger($output);
        $psrHandler    = new PsrHandler($consoleLogger);

        $logger->pushHandler($psrHandler);
        $logger->pushHandler(new ErrorLogHandler(ErrorLogHandler::OPERATING_SYSTEM, Logger::NOTICE));

        ErrorHandler::register($logger);

        return $logger;
    }
public function create(OutputInterface $output) : LoggerInterface
    {
        $logger        = new Logger('browscap');
        $consoleLogger = new ConsoleLogger($output);
        $psrHandler    = new PsrHandler($consoleLogger);

        $logger->pushHandler($psrHandler);
        $logger->pushHandler(new ErrorLogHandler(ErrorLogHandler::OPERATING_SYSTEM, Logger::NOTICE));

        ErrorHandler::register($logger);

        return $logger;
    }
public function create ( OutputInterface $ output ) : LoggerInterface { $ logger = new Logger ( 'browscap' ) ; $ consoleLogger = new ConsoleLogger ( $ output ) ; $ psrHandler = new PsrHandler ( $ consoleLogger ) ; $ logger -> pushHandler ( $ psrHandler ) ; $ logger -> pushHandler ( new ErrorLogHandler ( ErrorLogHandler :: OPERATING_SYSTEM , Logger :: NOTICE ) ) ; ErrorHandler :: register ( $ logger ) ; return $ logger ; }
creates an instance of a PSR-3 Logger

@param OutputInterface $output

@return LoggerInterface
creates an instance of a PSR - 3 Logger