diff --git a/.env.testing b/.env.testing index 227d80788f..cf5e3cae72 100644 --- a/.env.testing +++ b/.env.testing @@ -71,4 +71,4 @@ SECURE_COOKIES=false # OPTIONAL: APP LOG FORMAT # -------------------------------------------- APP_LOG=single -APP_LOG_LEVEL=debug +LOG_LEVEL=debug diff --git a/config/app.php b/config/app.php index d57e5a0177..6b3f70d184 100755 --- a/config/app.php +++ b/config/app.php @@ -158,26 +158,6 @@ return [ 'log_max_files' => env('APP_LOG_MAX_FILES', 5), - /* - |-------------------------------------------------------------------------- - | Logging Detail - |-------------------------------------------------------------------------- - | - | By default, Laravel writes all log levels to storage. However, in your - | production environment, you may wish to configure the minimum severity that - | should be logged by editing your APP_LOG_LEVEL env config. - | - | Laravel will log all levels greater than or equal to the specified severity. - | For example, a default log_level of error will log error, critical, alert, - | and emergency messages. - | - | APP_LOG_LEVEL options are: - | "debug", "info", "notice", "warning", "error", "critical", "alert", "emergency" - | - */ - - 'log_level' => env('APP_LOG_LEVEL', 'error'), - /* |-------------------------------------------------------------------------- | Default Storage path for private uploads diff --git a/config/logging.php b/config/logging.php index 1aa06aa30f..c18101d0a9 100644 --- a/config/logging.php +++ b/config/logging.php @@ -44,13 +44,13 @@ return [ 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), - 'level' => env('LOG_LEVEL', 'debug'), + 'level' => env('LOG_LEVEL', 'warning'), ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), - 'level' => env('LOG_LEVEL', 'debug'), + 'level' => env('LOG_LEVEL', 'warning'), 'days' => 14, ], @@ -64,7 +64,7 @@ return [ 'papertrail' => [ 'driver' => 'monolog', - 'level' => env('LOG_LEVEL', 'debug'), + 'level' => env('LOG_LEVEL', 'warning'), 'handler' => SyslogUdpHandler::class, 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), @@ -74,7 +74,7 @@ return [ 'stderr' => [ 'driver' => 'monolog', - 'level' => env('LOG_LEVEL', 'debug'), + 'level' => env('LOG_LEVEL', 'warning'), 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), 'with' => [ @@ -84,12 +84,12 @@ return [ 'syslog' => [ 'driver' => 'syslog', - 'level' => env('LOG_LEVEL', 'debug'), + 'level' => env('LOG_LEVEL', 'warning'), ], 'errorlog' => [ 'driver' => 'errorlog', - 'level' => env('LOG_LEVEL', 'debug'), + 'level' => env('LOG_LEVEL', 'warning'), ], 'null' => [