src/Joli/JoliCi/Container.php
public function getConsoleLogger($verbose = false)
    {
        $logger               = new Logger("standalone-logger");
        $handler              = new StreamHandler("php://stdout", $verbose ? Logger::DEBUG : Logger::INFO);
        $simpleFormatter      = new SimpleFormatter();

        $handler->setFormatter($simpleFormatter);
        $logger->pushHandler($handler);

        if (!$verbose) {
            $stdErrHandler = new StreamHandler("php://stderr", Logger::DEBUG);
            $fingerCrossedHandler = new FingersCrossedHandler($stdErrHandler, new ErrorLevelActivationStrategy(Logger::ERROR), 10);

            $logger->pushHandler($fingerCrossedHandler);
            $stdErrHandler->setFormatter($simpleFormatter);
        }

        return $logger;
    }
public function getConsoleLogger($verbose = false)
    {
        $logger               = new Logger("standalone-logger");
        $handler              = new StreamHandler("php://stdout", $verbose ? Logger::DEBUG : Logger::INFO);
        $simpleFormatter      = new SimpleFormatter();

        $handler->setFormatter($simpleFormatter);
        $logger->pushHandler($handler);

        if (!$verbose) {
            $stdErrHandler = new StreamHandler("php://stderr", Logger::DEBUG);
            $fingerCrossedHandler = new FingersCrossedHandler($stdErrHandler, new ErrorLevelActivationStrategy(Logger::ERROR), 10);

            $logger->pushHandler($fingerCrossedHandler);
            $stdErrHandler->setFormatter($simpleFormatter);
        }

        return $logger;
    }
Get a console with finger crossed handler

@param bool $verbose

@return Logger