Log.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace Yansongda\Pay;
  3. use Yansongda\Supports\Log as BaseLog;
  4. /**
  5. * @method static void emergency($message, array $context = array())
  6. * @method static void alert($message, array $context = array())
  7. * @method static void critical($message, array $context = array())
  8. * @method static void error($message, array $context = array())
  9. * @method static void warning($message, array $context = array())
  10. * @method static void notice($message, array $context = array())
  11. * @method static void info($message, array $context = array())
  12. * @method static void debug($message, array $context = array())
  13. * @method static void log($message, array $context = array())
  14. */
  15. class Log
  16. {
  17. /**
  18. * Forward call.
  19. *
  20. * @author yansongda <me@yansongda.cn>
  21. *
  22. * @param string $method
  23. * @param array $args
  24. *
  25. * @return mixed
  26. */
  27. public static function __callStatic($method, $args)
  28. {
  29. return forward_static_call_array([BaseLog::class, $method], $args);
  30. }
  31. /**
  32. * Forward call.
  33. *
  34. * @author yansongda <me@yansongda.cn>
  35. *
  36. * @param string $method
  37. * @param array $args
  38. *
  39. * @return mixed
  40. */
  41. public function __call($method, $args)
  42. {
  43. return call_user_func_array([BaseLog::class, $method], $args);
  44. }
  45. }