1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Example of "set RestClient.log with a Ruby Logger"

This commit is contained in:
Nathan Perry 2016-06-15 15:18:24 -04:00 committed by GitHub
parent ac388df8b9
commit 687ff40d19

View file

@ -351,8 +351,13 @@ $ restclient put http://example.com/resource < input_body
To enable logging you can:
- set RestClient.log with a Ruby Logger, or
- set an environment variable to avoid modifying the code (in this case you can use a file name, "stdout" or "stderr"):
- set RestClient.log with a Ruby Logger
```ruby
RestClient.log = STDOUT
```
- or set an environment variable to avoid modifying the code (in this case you can use a file name, "stdout" or "stderr"):
```ruby
$ RESTCLIENT_LOG=stdout path/to/my/program