CacheTool\Monolog\ConsoleHandler::updateLevel PHP Method

updateLevel() private method

Updates the logging level based on the verbosity setting of the console output.
private updateLevel ( ) : boolean
return boolean Whether the handler is enabled and verbosity is not set to quiet.
    private function updateLevel()
    {
        if (null === $this->output || OutputInterface::VERBOSITY_QUIET === ($verbosity = $this->output->getVerbosity())) {
            return false;
        }
        if (isset($this->verbosityLevelMap[$verbosity])) {
            $this->setLevel($this->verbosityLevelMap[$verbosity]);
        } else {
            $this->setLevel(Logger::DEBUG);
        }
        return true;
    }