Skip to content

Commit f89b93b

Browse files
authored
Add log to file option to README
1 parent de7c73c commit f89b93b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Flags:
4545
-a, --address string sets the address for the endpoint (default "localhost")
4646
--details shows header details in the request
4747
-h, --help help for rh
48+
--log string writes incoming requests to the specified log file (example: --log rh.log)
4849
-p, --port int sets the port for the endpoint (default 8080)
4950
-r, --response_code int sets the response code (default 200)
5051
@@ -65,6 +66,14 @@ $ rh http --details
6566
```
6667
<img width="785" alt="Request Hole CLI details" src="https://user-images.githubusercontent.com/100900/120266674-1d48c000-c23e-11eb-8107-50db997ac3cc.png">
6768

69+
### Log to file
70+
This option will write the CLI output to the specified log file. Works with other options such as `--details`.
71+
```
72+
$ rh http --log rh.log
73+
```
74+
<img width="787" alt="Request Hole CLI log" src="https://user-images.githubusercontent.com/100900/120877567-fac2e980-c552-11eb-8ec0-8075bc6c0cd8.png">
75+
76+
6877
### Exposing Request Hole to the internet
6978
Sometimes we need to expose `rh` to the internet to test applications or webhooks from outside of our local dev env. The best way to do this is to use a tunneling service such as [ngrok](https://ngrok.com).
7079
```

0 commit comments

Comments
 (0)