改进日志处理

This commit is contained in:
thinkphp
2018-03-02 15:30:15 +08:00
parent 728134a0d5
commit 748c060f01

View File

@@ -81,6 +81,8 @@ class File
// 独立记录的日志级别
if ($this->config['single']) {
$filename = $path . DS . $type . '.log';
} elseif ($this->config['max_files']) {
$filename = $path . DS . date('Ymd') . '_' . $type . $cli . '.log';
} else {
$filename = $path . DS . date('d') . '_' . $type . $cli . '.log';
}