mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进日志处理
This commit is contained in:
@@ -81,6 +81,8 @@ class File
|
|||||||
// 独立记录的日志级别
|
// 独立记录的日志级别
|
||||||
if ($this->config['single']) {
|
if ($this->config['single']) {
|
||||||
$filename = $path . DS . $type . '.log';
|
$filename = $path . DS . $type . '.log';
|
||||||
|
} elseif ($this->config['max_files']) {
|
||||||
|
$filename = $path . DS . date('Ymd') . '_' . $type . $cli . '.log';
|
||||||
} else {
|
} else {
|
||||||
$filename = $path . DS . date('d') . '_' . $type . $cli . '.log';
|
$filename = $path . DS . date('d') . '_' . $type . $cli . '.log';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user