Skip to content

Conversation

marcell-ferenc
Copy link
Contributor

This PR introduces the ability to enable or disable HTTP logging via a new .env variable, HTTP_LOGGER_ENABLED.
The default LogNonGetRequests implementation now includes this check before logging requests, allowing users to easily toggle logging on or off based on their environment configuration.

- new configuration option enabled in config/http-logger.php
- update the default log implementation to check the enabled configuration before logging requests
@freekmurze freekmurze merged commit f8bfadb into spatie:main Jul 15, 2024
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants