You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package includes automatic logging of HTTP requests as cURL commands. Optionally, you can publish the configuration file using the following command:
72
+
To enable the automatic logging of curl command for each request, configure these options directly through environment variables:
73
+
74
+
-`HTTP_TO_CURL_LOGGING`: Enable/disable logging (defaults to false)
75
+
-`HTTP_TO_CURL_LOG_LEVEL`: Set log level (defaults to "debug")
76
+
-`HTTP_TO_CURL_LOG_CHANNEL`: Select log channel (defaults to "stack")
77
+
78
+
Optionally, you can publish the configuration file using the following command:
This will create a `config/http-to-curl.php` file where you can customize the logging behavior.
77
83
78
-
You can also configure these options directly through environment variables:
79
-
80
-
-`HTTP_TO_CURL_LOGGING`: Enable/disable logging (defaults to true)
81
-
-`HTTP_TO_CURL_LOG_LEVEL`: Set log level (defaults to "debug")
82
-
-`HTTP_TO_CURL_LOG_CHANNEL`: Select log channel (defaults to "stack")
83
-
84
84
### Logging Example
85
85
86
86
When you enable logging by setting `HTTP_TO_CURL_LOGGING=true` in your environment, all HTTP requests will be automatically logged. For example, if your application makes this request:
0 commit comments