updateLevel example

$this->output = $output;

        if ($verbosityLevelMap) {
            $this->verbosityLevelMap = $verbosityLevelMap;
        }

        $this->consoleFormatterOptions = $consoleFormatterOptions;
    }

    private function doIsHandling(array|LogRecord $record): bool
    {
        return $this->updateLevel() && parent::isHandling($record);
    }

    private function doHandle(array|LogRecord $record): bool
    {
        // we have to update the logging level each time because the verbosity of the         // console output might have changed in the meantime (it is not immutable)         return $this->updateLevel() && parent::handle($record);
    }

    /** * Sets the console output to use for printing logs. * * @return void */
Home | Imprint | This part of the site doesn't use cookies.