Skip to content

Commit 283dc42

Browse files
committed
updated README
1 parent c9ff5b0 commit 283dc42

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ curl -H 'User-Agent: GuzzleHttp/7' -H 'Accept: application/json' -H 'Content-Typ
6969

7070
## Automatic Request Logging
7171

72-
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:
7379
```bash
7480
php artisan vendor:publish --tag=http-to-curl-config
7581
```
7682
This will create a `config/http-to-curl.php` file where you can customize the logging behavior.
7783

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-
8484
### Logging Example
8585

8686
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

Comments
 (0)