mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进日志存储结构和输出驱动
This commit is contained in:
@@ -77,7 +77,7 @@ class Log
|
||||
if (!is_string($msg)) {
|
||||
$msg = var_export($msg, true);
|
||||
}
|
||||
self::$log[] = ['type' => $type, 'msg' => $msg];
|
||||
self::$log[$type][] = $msg;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,7 +123,7 @@ class Log
|
||||
$msg = var_export($msg, true);
|
||||
}
|
||||
// 封装日志信息
|
||||
$log[] = ['type' => $type, 'msg' => $msg];
|
||||
$log[$type][] = $msg;
|
||||
|
||||
// 监听log_write
|
||||
Hook::listen('log_write', $log);
|
||||
|
||||
Reference in New Issue
Block a user