public static function warning($msg) { if (self::$flags & self::WARNING) { call_user_func(Logger::$writer, self::WARNING, $msg); } }
/** * * @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; } }