mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进Log类的getLog方法 支持获取某个类型的日志信息
This commit is contained in:
@@ -63,12 +63,13 @@ class Log
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取全部日志信息
|
* 获取日志信息
|
||||||
|
* @param string $type 信息类型
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function getLog()
|
public static function getLog($type = '')
|
||||||
{
|
{
|
||||||
return self::$log;
|
return $type ? self::$log[$type] : self::$log;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user