改进日志存储结构和输出驱动

This commit is contained in:
thinkphp
2016-06-06 14:22:37 +08:00
parent 486e58975b
commit 0efb5d02fd
5 changed files with 62 additions and 48 deletions

View File

@@ -70,8 +70,10 @@ class Trace
// 获取调试日志
$debug = [];
foreach ($log as $line) {
$debug[$line['type']][] = $line['msg'];
foreach ($log as $type => $val) {
foreach ($val as $msg) {
$debug[$type][] = $msg;
}
}
// 页面Trace信息