feat: 스케줄러 Laravel 12 표준 방식 전환 + 로그 기록

- routes/console.php에 스케줄러 마이그레이션 (Laravel 12 표준)
- appendOutputTo로 실행 결과 로그 기록 (storage/logs/scheduler.log)
- onSuccess/onFailure로 성공/실패 이벤트 로그 (storage/logs/laravel.log)
- app/Console/Kernel.php schedule() 메서드 정리
- CURRENT_WORKS.md 업데이트
This commit is contained in:
2025-11-10 13:59:48 +09:00
parent 798d5149ea
commit dbe3ed698a
3 changed files with 166 additions and 3 deletions

View File

@@ -20,8 +20,8 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule): void
{
// 매일 새벽 03:10에 감사 로그 정리(환경값 기반 보관기간)
$schedule->command('audit:prune')->dailyAt('03:10');
// Laravel 12부터는 routes/console.php에서 스케줄러를 정의합니다.
// Schedule::command() 방식 사용
}
protected function commands(): void