Skip to content

Commit

Permalink
Update README with the http_logger.enabled config
Browse files Browse the repository at this point in the history
  • Loading branch information
marcell-ferenc committed Jul 13, 2024
1 parent 09a3c03 commit 2f8abff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ This is the contents of the published config file:
```php
return [

/*
* Determine if the http-logger middleware should be enabled.
*/
'enabled' => env('HTTP_LOGGER_ENABLED', true),

/*
* The log profile which determines whether a request should be logged.
* It should implement `LogProfile`.
Expand Down Expand Up @@ -115,6 +120,7 @@ and `LogWriter` class will write the request to a log.
A default log implementation is added within this package.
It will only log `POST`, `PUT`, `PATCH`, and `DELETE` requests
and it will write to the default Laravel logger.
Logging is enabled by default but can be toggled on or off via the `HTTP_LOGGER_ENABLED` variable in the `.env` file.

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

0 comments on commit 2f8abff

Please sign in to comment.