优化几个注释,其它文件太多了,改不过来啊

This commit is contained in:
尘缘
2016-05-08 07:35:10 +08:00
parent 8410162e3a
commit 5a3721e4e9

View File

@@ -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)) {