Skip to content
Daniel Berger edited this page Nov 3, 2016 · 2 revisions

If you want to see the low level http requests being made behind the scenes, a simple approach is to set the log to STDOUT, or to whatever file you want.

# Send output to stdout
Azure::Armrest::Configuration.log = STDOUT

# Or to a file
Azure::Armrest::Configuration.log = File.open("/Users/you/some.log")

This is a thin wrapper around RestClient.log.

Please keep in mind that no filtering happens, so you will see the authorization header output if you log this information. Currently there is no good way to filter that information because of the way the underlying rest-client library is writing to the Logger instance.

Please see https://github.com/rest-client/rest-client/pull/543, among other PR's that aim to improve logging in general.