Browse Source

Add application log level configuration

This config option ties in with changes in fbd6e77 that were tagged in
v5.2.35 of the framework.
Michael Dyrynda 10 years ago
parent
commit
7259c265e6
2 changed files with 15 additions and 0 deletions
  1. 1 0
      .env.example
  2. 14 0
      config/app.php

+ 1 - 0
.env.example

@@ -1,5 +1,6 @@
 APP_ENV=local
 APP_DEBUG=true
+APP_LOG_LEVEL=debug
 APP_KEY=SomeRandomString
 APP_URL=http://localhost
 

+ 14 - 0
config/app.php

@@ -28,6 +28,20 @@ return [
 
     'debug' => env('APP_DEBUG', false),
 
+    /*
+    |--------------------------------------------------------------------------
+    | Application Log Level
+    |--------------------------------------------------------------------------
+    |
+    | By default, Laravel will write all log messages to its log file. You
+    | can specify the minimum log level by setting this value to one of
+    | the logging levels defined in RFC 5424 and Laravel will log all
+    | messages greater than or equal to the configured log level.
+    |
+     */
+
+    'log_level' => env('APP_LOG_LEVEL', 'debug'),
+
     /*
     |--------------------------------------------------------------------------
     | Application URL