Skip to content

Commit 7259c26

Browse files
Add application log level configuration
This config option ties in with changes in fbd6e77 that were tagged in v5.2.35 of the framework.
1 parent bee4dc1 commit 7259c26

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
APP_ENV=local
22
APP_DEBUG=true
3+
APP_LOG_LEVEL=debug
34
APP_KEY=SomeRandomString
45
APP_URL=http://localhost
56

config/app.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@
2828

2929
'debug' => env('APP_DEBUG', false),
3030

31+
/*
32+
|--------------------------------------------------------------------------
33+
| Application Log Level
34+
|--------------------------------------------------------------------------
35+
|
36+
| By default, Laravel will write all log messages to its log file. You
37+
| can specify the minimum log level by setting this value to one of
38+
| the logging levels defined in RFC 5424 and Laravel will log all
39+
| messages greater than or equal to the configured log level.
40+
|
41+
*/
42+
43+
'log_level' => env('APP_LOG_LEVEL', 'debug'),
44+
3145
/*
3246
|--------------------------------------------------------------------------
3347
| Application URL

0 commit comments

Comments
 (0)