Commit d3bc6e22 authored by 王源's avatar 王源 🎧

优化Log类对数组和对象数据的处理

parent ca525dfb
......@@ -89,6 +89,9 @@ class Log
public static function __callStatic($name, $arguments)
{
$msg = $arguments[0];
if (is_array($msg)) {
$msg = var_export($msg, true);
}
$channel = $arguments[1];
return static::log($channel)->{$name}($msg);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment