From 5a3721e4e9e1eab1968d41b0825635926ce3493e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=98=E7=BC=98?= Date: Sun, 8 May 2016 07:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=87=A0=E4=B8=AA=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=EF=BC=8C=E5=85=B6=E5=AE=83=E6=96=87=E4=BB=B6=E5=A4=AA?= =?UTF-8?q?=E5=A4=9A=E4=BA=86=EF=BC=8C=E6=94=B9=E4=B8=8D=E8=BF=87=E6=9D=A5?= =?UTF-8?q?=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Log.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/library/think/Log.php b/library/think/Log.php index 55290d30..7b41c6ee 100644 --- a/library/think/Log.php +++ b/library/think/Log.php @@ -29,7 +29,10 @@ class Log // 通知发送驱动 protected static $alarm = null; - // 日志初始化 + /** + * 日志初始化 + * @return void + */ public static function init($config = []) { $type = isset($config['type']) ? $config['type'] : 'File'; @@ -40,7 +43,10 @@ class Log APP_DEBUG && Log::record('[ LOG ] INIT ' . $type . ': ' . var_export($config, true), 'info'); } - // 通知初始化 + /** + * 通知初始化 + * @return void + */ public static function alarm($config = []) { $type = isset($config['type']) ? $config['type'] : 'Email'; @@ -128,7 +134,10 @@ class Log self::$alarm && self::$alarm->send($msg); } - // 静态调用 + /** + * 静态调用 + * @return void + */ public static function __callStatic($method, $args) { if (in_array($method, self::$type)) {