From 0c7d4a709aa458f1bbfdbaf62f9e46a2467532c2 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Mon, 25 Jul 2022 19:25:06 -0700 Subject: [PATCH] Cleaned up more logging options --- .env.docker | 2 +- .env.example | 2 +- config/app.php | 29 ----------------------------- config/logging.php | 2 +- 4 files changed, 3 insertions(+), 32 deletions(-) diff --git a/.env.docker b/.env.docker index 6c64c8074b..9a68c1b253 100644 --- a/.env.docker +++ b/.env.docker @@ -156,7 +156,7 @@ RESET_PASSWORD_LINK_EXPIRES=900 # OPTIONAL: MISC # -------------------------------------------- APP_LOG=stderr -APP_LOG_MAX_FILES=10 +LOG_MAX_DAYS=10 APP_LOCKED=false APP_CIPHER=AES-256-CBC GOOGLE_MAPS_API= diff --git a/.env.example b/.env.example index 90c785e94b..d7e022c79a 100644 --- a/.env.example +++ b/.env.example @@ -159,7 +159,7 @@ PASSWORD_RESET_MAX_ATTEMPTS_PER_MIN=50 # OPTIONAL: MISC # -------------------------------------------- APP_LOG=single -APP_LOG_MAX_FILES=10 +LOG_MAX_DAYS=10 APP_LOCKED=false APP_CIPHER=AES-256-CBC APP_FORCE_TLS=false diff --git a/config/app.php b/config/app.php index 6b3f70d184..c3627ddea6 100755 --- a/config/app.php +++ b/config/app.php @@ -129,35 +129,6 @@ return [ 'cipher' => env('APP_CIPHER', 'AES-256-CBC'), - /* - |-------------------------------------------------------------------------- - | Logging Configuration - |-------------------------------------------------------------------------- - | - | Here you may configure the log settings for your application. Out of - | the box, Laravel uses the Monolog PHP logging library. This gives - | you a variety of powerful log handlers / formatters to utilize. - | - | Available Settings: "single", "daily", "syslog", "errorlog" - | - */ - - 'log' => env('APP_LOG', 'single'), - - /* - |-------------------------------------------------------------------------- - | Logging Max Files - |-------------------------------------------------------------------------- - | - | When using the daily log mode, Laravel will only retain 5 - | days of log files by default. - | - | To change this, set the APP_LOG_MAX_FILES option in your .env. - | - */ - - 'log_max_files' => env('APP_LOG_MAX_FILES', 5), - /* |-------------------------------------------------------------------------- | Default Storage path for private uploads diff --git a/config/logging.php b/config/logging.php index c18101d0a9..2f884d3acd 100644 --- a/config/logging.php +++ b/config/logging.php @@ -51,7 +51,7 @@ return [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => env('LOG_LEVEL', 'warning'), - 'days' => 14, + 'days' => env('LOG_MAX_DAYS', 14), ], 'slack' => [