From 23c96d945333be2ad93c4cc887346f4257b7eb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Wed, 22 Feb 2023 15:06:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/listener/crontab/SystemCrontabListener.php | 2 +- crmeb/app/services/system/crontab/SystemCrontabServices.php | 2 +- crmeb/config/log.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crmeb/app/listener/crontab/SystemCrontabListener.php b/crmeb/app/listener/crontab/SystemCrontabListener.php index ba3c33adf..04b5decaf 100644 --- a/crmeb/app/listener/crontab/SystemCrontabListener.php +++ b/crmeb/app/listener/crontab/SystemCrontabListener.php @@ -148,7 +148,7 @@ class SystemCrontabListener implements ListenerInterface $timer_log_open = config("log.timer_log", false); if ($timer_log_open){ $date = date('Y-m-d H:i:s', time()); - Log::notice($date . $msg); + Log::info($date . $msg); } } diff --git a/crmeb/app/services/system/crontab/SystemCrontabServices.php b/crmeb/app/services/system/crontab/SystemCrontabServices.php index 3bba16f7c..ee4cc87ef 100644 --- a/crmeb/app/services/system/crontab/SystemCrontabServices.php +++ b/crmeb/app/services/system/crontab/SystemCrontabServices.php @@ -265,7 +265,7 @@ class SystemCrontabServices extends BaseServices $timer_log_open = config("log.timer_log", false); if ($timer_log_open) { $date = date('Y-m-d H:i:s', time()); - Log::notice($date . $msg); + Log::info($date . $msg); } } } \ No newline at end of file diff --git a/crmeb/config/log.php b/crmeb/config/log.php index 843388526..942526b9b 100644 --- a/crmeb/config/log.php +++ b/crmeb/config/log.php @@ -17,7 +17,7 @@ return [ // 默认日志记录通道 'default' => Env::get('log.channel', 'file'), // 日志记录级别 - 'level' => ['error', 'warning', 'fail', 'success'], + 'level' => ['error', 'warning', 'fail', 'success', 'info', 'notice'], // 日志类型记录的通道 ['error'=>'email',...] 'type_channel' => [], //是否开启业务成功日志