|
|
@@ -34,4 +34,10 @@ class SystemCron
|
|
|
$this->cache->set('crontab_list', $crontabList);
|
|
|
$this->isStart = true;
|
|
|
}
|
|
|
+
|
|
|
+ #[Cron('1 0 0 * * *', 'system.cron.change_log_file')]
|
|
|
+ public function changeLogFile(): void
|
|
|
+ {
|
|
|
+ Worker::$logFile = root_path('runtime') . 'crontab_' . date('Ymd') . '.log';
|
|
|
+ }
|
|
|
}
|