独立日志类型 依然按照日保存 方便查找日志

This commit is contained in:
thinkphp
2016-09-12 13:55:14 +08:00
parent faa3e8aabc
commit fc0a761165

View File

@@ -79,7 +79,7 @@ class File
}
if (in_array($type, $this->config['apart_level'])) {
// 独立记录的日志级别
$filename = $path . DS . $type . '.log';
$filename = $path . DS . date('d') . '_' . $type . '.log';
error_log("[{$now}] {$server} {$remote} {$method} {$uri}\r\n{$level}\r\n---------------------------------------------------------------\r\n", 3, $filename);
} else {
$info .= $level;