mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
优化几个注释,其它文件太多了,改不过来啊
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user