From fc0a7611659bf665d3a1635e2f138cd9de63e4a0 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 12 Sep 2016 13:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E6=97=A5=E5=BF=97=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=20=E4=BE=9D=E7=84=B6=E6=8C=89=E7=85=A7=E6=97=A5?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=20=E6=96=B9=E4=BE=BF=E6=9F=A5=E6=89=BE?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= 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, 1 insertion(+), 1 deletion(-) diff --git a/library/think/log/driver/File.php b/library/think/log/driver/File.php index 995ef260..c4e46279 100644 --- a/library/think/log/driver/File.php +++ b/library/think/log/driver/File.php @@ -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;