Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to enable/disable HTTP Logging via .env variable #64

Merged
merged 2 commits into from
Jul 15, 2024
Merged

Add ability to enable/disable HTTP Logging via .env variable #64

merged 2 commits into from
Jul 15, 2024

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.

Verified

This commit was signed with the committer’s verified signature.
marcell-ferenc Marcell Ferenc
- new configuration option enabled in config/http-logger.php
- update the default log implementation to check the enabled configuration before logging requests

Verified

This commit was signed with the committer’s verified signature.
marcell-ferenc Marcell Ferenc
@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.

None yet

2 participants