src/StaticApplicationAbstract.php
protected function getErrorLogLevel($code)
    {
        $levels = [
            E_ERROR => ['error', [Console::FG_RED, Console::BOLD]],
            E_WARNING => ['warning', [Console::FG_YELLOW, Console::BOLD]],
            E_PARSE => ['parse error', Console::FG_RED],
            E_NOTICE => ['notice', Console::FG_YELLOW],
            E_CORE_ERROR => ['core error', Console::FG_RED],
            E_CORE_WARNING => ['core warning', Console::FG_YELLOW],
            E_STRICT => ['strict warning', Console::FG_BLUE],
        ];
        foreach ($levels as $mask => $level) {
            if ($mask & $code) {
                return $level;
            }
        }
        return ['low error', Console::FG_GREY];
    }
protected function getErrorLogLevel($code)
    {
        $levels = [
            E_ERROR => ['error', [Console::FG_RED, Console::BOLD]],
            E_WARNING => ['warning', [Console::FG_YELLOW, Console::BOLD]],
            E_PARSE => ['parse error', Console::FG_RED],
            E_NOTICE => ['notice', Console::FG_YELLOW],
            E_CORE_ERROR => ['core error', Console::FG_RED],
            E_CORE_WARNING => ['core warning', Console::FG_YELLOW],
            E_STRICT => ['strict warning', Console::FG_BLUE],
        ];
        foreach ($levels as $mask => $level) {
            if ($mask & $code) {
                return $level;
            }
        }
        return ['low error', Console::FG_GREY];
    }
Get error log level by error code
@param int $code
@return array|mixed