feat(logging): implement scheduled logs command and enhance backup/task scheduling with cron checks

This commit is contained in:
Andras Bacsai
2025-07-11 15:10:55 +02:00
parent 2214099c90
commit 36fe235bea
3 changed files with 267 additions and 0 deletions

View File

@@ -118,6 +118,20 @@ return [
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
'scheduled' => [
'driver' => 'daily',
'path' => storage_path('logs/scheduled.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 1, // Keep logs for 1 day only (truncated daily)
],
'scheduled-errors' => [
'driver' => 'daily',
'path' => storage_path('logs/scheduled-errors.log'),
'level' => 'error',
'days' => 7, // Keep error logs for 7 days
],
],
];