改进Log类的record方法

This commit is contained in:
thinkphp
2016-06-14 14:24:25 +08:00
parent c9155c016d
commit 15aeb6d7f4
5 changed files with 12 additions and 6 deletions

View File

@@ -44,6 +44,9 @@ class Sae
$info = '[ log ] ' . $current_uri . $time_str . $memory_str . $file_load . "\r\n";
foreach ($log as $type => $val) {
foreach ($val as $msg) {
if (!is_string($msg)) {
$msg = var_export($msg, true);
}
$info .= '[ ' . $type . ' ] ' . $msg . "\r\n";
}
}