Skip to content

Commit 2f8abff

Browse files
Update README with the http_logger.enabled config
1 parent 09a3c03 commit 2f8abff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ This is the contents of the published config file:
3636
```php
3737
return [
3838

39+
/*
40+
* Determine if the http-logger middleware should be enabled.
41+
*/
42+
'enabled' => env('HTTP_LOGGER_ENABLED', true),
43+
3944
/*
4045
* The log profile which determines whether a request should be logged.
4146
* It should implement `LogProfile`.
@@ -115,6 +120,7 @@ and `LogWriter` class will write the request to a log.
115120
A default log implementation is added within this package.
116121
It will only log `POST`, `PUT`, `PATCH`, and `DELETE` requests
117122
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.
118124

119125
You're free to implement your own log profile and/or log writer classes,
120126
and configure it in `config/http-logger.php`.

0 commit comments

Comments
 (0)