From 2cb0f1ed4a32239c40547de2f4faee584b656911 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 6 Jun 2016 18:29:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BLog=E7=B1=BB=E7=9A=84getLog?= =?UTF-8?q?=E6=96=B9=E6=B3=95=20=E6=94=AF=E6=8C=81=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=9F=90=E4=B8=AA=E7=B1=BB=E5=9E=8B=E7=9A=84=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Log.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } /**