public static function warning(...$params): void
    {
        if(self::$verbosity < 1) {
            return;
        }
        $msg = self::processParams($params);
        if(isset(self::$logger)) {
            self::$logger->warning($msg);
        } else {
            echo $msg.PHP_EOL;
        }
    }
public static function warning(...$params): void
    {
        if(self::$verbosity < 1) {
            return;
        }
        $msg = self::processParams($params);
        if(isset(self::$logger)) {
            self::$logger->warning($msg);
        } else {
            echo $msg.PHP_EOL;
        }
    }
public static function warning ( ... $ params ) : void { if ( self :: $ verbosity < 1 ) { return ; } $ msg = self :: processParams ( $ params ) ; if ( isset ( self :: $ logger ) ) { self :: $ logger -> warning ( $ msg ) ; } else { echo $ msg . PHP_EOL ; } }
Logs warning or more critical messages.

@param ...$params  If a single parameter is passed, treats as a string, otherwise acts as sprintf

@return void
Logs warning or more critical messages .