定时任务记录问题修复

This commit is contained in:
吴昊天 2023-02-22 15:06:19 +08:00
parent edaf7526d7
commit 23c96d9453
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}
}

View File

@ -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' => [],
//是否开启业务成功日志