mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进命令行下的日志记录
This commit is contained in:
@@ -84,6 +84,10 @@ class Log
|
|||||||
public static function record($msg, $type = 'log')
|
public static function record($msg, $type = 'log')
|
||||||
{
|
{
|
||||||
self::$log[$type][] = $msg;
|
self::$log[$type][] = $msg;
|
||||||
|
if (IS_CLI && count(self::$log[$type]) > 100) {
|
||||||
|
// 命令行下面日志写入改进
|
||||||
|
self::save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user