From e189137f6a1bbd9c578c44e28b1f4d819310d514 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Fri, 10 Mar 2023 21:04:26 +0600 Subject: [PATCH] Added channel deprecations. --- .env.example | 4 ++-- config/logging.php | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 478972c..f0a2039 100644 --- a/.env.example +++ b/.env.example @@ -4,8 +4,8 @@ APP_KEY= APP_DEBUG=true APP_URL=http://localhost -LOG_CHANNEL=stack -LOG_DEPRECATIONS_CHANNEL=null +LOG_CHANNEL=daily +LOG_DEPRECATIONS_CHANNEL=deprecations LOG_LEVEL=debug DB_CONNECTION=mysql diff --git a/config/logging.php b/config/logging.php index 4c3df4c..b3ec152 100644 --- a/config/logging.php +++ b/config/logging.php @@ -70,6 +70,12 @@ return [ 'days' => 14, ], + 'deprecations' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/deprecations.log'), + 'level' => env('LOG_LEVEL', 'debug'), + ], + 'slack' => [ 'driver' => 'slack', 'url' => env('LOG_SLACK_WEBHOOK_URL'),