feat(logging): migrate remaining files to app channel — all Log:: calls now use domain channels

This commit is contained in:
F4ilji
2026-07-05 23:32:01 +05:00
parent 6bc1b3e921
commit 769b2ff342
17 changed files with 50 additions and 50 deletions
@@ -66,7 +66,7 @@ class FetchEmailNewsCommand extends ConsoleCommand
return $this->handleSync($fetchEmailNewsAction, $verbose);
} catch (EmailFetchException $e) {
$this->error('❌ Ошибка Email: ' . $e->getMessage());
Log::error('[FetchEmailNewsCommand] EmailFetchException', [
Log::channel('app')->error('EmailFetchException', [
'code' => $e->getCode(),
'message' => $e->getMessage(),
]);
@@ -76,7 +76,7 @@ class FetchEmailNewsCommand extends ConsoleCommand
$this->error('❌ Критическая ошибка: ' . $e->getMessage());
$this->warn('Проверьте логи: storage/logs/laravel.log');
Log::error('[FetchEmailNewsCommand] Critical Error', [
Log::channel('app')->error('Critical Error', [
'error' => $e->getMessage(),
'trace' => $e->getTraceAsString(),
]);