File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ This is the contents of the published config file:
36
36
``` php
37
37
return [
38
38
39
+ /*
40
+ * Determine if the http-logger middleware should be enabled.
41
+ */
42
+ 'enabled' => env('HTTP_LOGGER_ENABLED', true),
43
+
39
44
/*
40
45
* The log profile which determines whether a request should be logged.
41
46
* It should implement `LogProfile`.
@@ -115,6 +120,7 @@ and `LogWriter` class will write the request to a log.
115
120
A default log implementation is added within this package.
116
121
It will only log ` POST ` , ` PUT ` , ` PATCH ` , and ` DELETE ` requests
117
122
and it will write to the default Laravel logger.
123
+ Logging is enabled by default but can be toggled on or off via the ` HTTP_LOGGER_ENABLED ` variable in the ` .env ` file.
118
124
119
125
You're free to implement your own log profile and/or log writer classes,
120
126
and configure it in ` config/http-logger.php ` .
You can’t perform that action at this time.
0 commit comments