改进Log类支持json日志格式

This commit is contained in:
thinkphp
2018-09-15 21:12:16 +08:00
parent ab826da071
commit aeab3965f2
2 changed files with 198 additions and 72 deletions

View File

@@ -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 = [];
}