phprs\util\Logger::warning PHP Method

warning() public static method

warning log
public static warning ( string $msg ) : void
$msg string
return void
    public static function warning($msg)
    {
        if (self::$flags & self::WARNING) {
            call_user_func(Logger::$writer, self::WARNING, $msg);
        }
    }

Usage Example

Beispiel #1
0
 /**
  *
  * @param \Exception|string $e
  * @throws unknown
  */
 public static function e($e)
 {
     if ($e === null || is_string($e)) {
         Logger::warning($e);
         throw new \Exception($e);
     } else {
         Logger::warning($e->__toString());
         throw $e;
     }
 }
All Usage Examples Of phprs\util\Logger::warning