From 748c060f015b41162d824a20173da31f68eb015a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 2 Mar 2018 15:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=97=A5=E5=BF=97=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/log/driver/File.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/log/driver/File.php b/library/think/log/driver/File.php index 6c61a9a1..fa84ac1a 100644 --- a/library/think/log/driver/File.php +++ b/library/think/log/driver/File.php @@ -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'; }