diff --git a/README.md b/README.md index 8837037..889488b 100644 --- a/README.md +++ b/README.md @@ -601,8 +601,13 @@ $ restclient put http://example.com/resource < input_body To enable logging globally 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