From 687ff40d19a16eb9ebdf8d11847e52393318411a Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Wed, 15 Jun 2016 15:18:24 -0400 Subject: [PATCH] Example of "set RestClient.log with a Ruby Logger" --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94f1f11..b13768e 100644 --- a/README.md +++ b/README.md @@ -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