Skip to content

A free open source IT asset/license management system

Cleaned up more logging options

Brady Wetherington0c7d4a709aa4
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' => [