mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进Log类支持json日志格式
This commit is contained in:
@@ -176,7 +176,7 @@ class Log
|
||||
}
|
||||
}
|
||||
|
||||
if ($result = self::$driver->save($log)) {
|
||||
if ($result = self::$driver->save($log, true)) {
|
||||
self::$log = [];
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ class Log
|
||||
is_null(self::$driver) && self::init(Config::get('log'));
|
||||
|
||||
// 写入日志
|
||||
if ($result = self::$driver->save($log)) {
|
||||
if ($result = self::$driver->save($log, false)) {
|
||||
self::$log = [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user