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:
parent
ac388df8b9
commit
687ff40d19
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue