diff --git a/library/think/Log.php b/library/think/Log.php index c20911e3..65c2cd4c 100644 --- a/library/think/Log.php +++ b/library/think/Log.php @@ -63,12 +63,13 @@ class Log } /** - * 获取全部日志信息 + * 获取日志信息 + * @param string $type 信息类型 * @return array */ - public static function getLog() + public static function getLog($type = '') { - return self::$log; + return $type ? self::$log[$type] : self::$log; } /**