diff --git a/.env.example b/.env.example index dee4985ccf..f3bf31a49e 100644 --- a/.env.example +++ b/.env.example @@ -103,6 +103,7 @@ LOGIN_LOCKOUT_DURATION=60 # -------------------------------------------- APP_LOG=single APP_LOG_MAX_FILES=10 +APP_LOG_LEVEL=debug FILESYSTEM_DISK=local APP_TRUSTED_PROXIES=192.168.1.1,10.0.0.1 ALLOW_IFRAMING=false diff --git a/config/logging.php b/config/logging.php index c3b0a19556..86641787c0 100644 --- a/config/logging.php +++ b/config/logging.php @@ -41,7 +41,7 @@ return [ 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), - 'level' => 'debug', + 'level' => env('APP_LOG_LEVEL', 'error'), ], 'daily' => [