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

        $logger->pushHandler($psrHandler);

        /** @var callable $memoryProcessor */
        $memoryProcessor = new MemoryUsageProcessor(true);
        $logger->pushProcessor($memoryProcessor);

        /** @var callable $peakMemoryProcessor */
        $peakMemoryProcessor = new MemoryPeakUsageProcessor(true);
        $logger->pushProcessor($peakMemoryProcessor);

        ErrorHandler::register($logger);

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

        $logger->pushHandler($psrHandler);

        /** @var callable $memoryProcessor */
        $memoryProcessor = new MemoryUsageProcessor(true);
        $logger->pushProcessor($memoryProcessor);

        /** @var callable $peakMemoryProcessor */
        $peakMemoryProcessor = new MemoryPeakUsageProcessor(true);
        $logger->pushProcessor($peakMemoryProcessor);

        ErrorHandler::register($logger);

        return $logger;
    }
public static function createDefaultLogger ( OutputInterface $ output ) : LoggerInterface { $ logger = new Logger ( 'browscap' ) ; $ consoleLogger = new ConsoleLogger ( $ output ) ; $ psrHandler = new PsrHandler ( $ consoleLogger ) ; $ logger -> pushHandler ( $ psrHandler ) ; /** @var callable $memoryProcessor */ $ memoryProcessor = new MemoryUsageProcessor ( true ) ; $ logger -> pushProcessor ( $ memoryProcessor ) ; /** @var callable $peakMemoryProcessor */ $ peakMemoryProcessor = new MemoryPeakUsageProcessor ( true ) ; $ logger -> pushProcessor ( $ peakMemoryProcessor ) ; ErrorHandler :: register ( $ logger ) ; return $ logger ; }
creates a \Monolog\Logger instance

@param \Symfony\Component\Console\Output\OutputInterface $output

@return LoggerInterface
creates a \ Monolog \ Logger instance