Skip to content

Instantly share code, notes, and snippets.

@jimytc
Created August 13, 2018 15:08
Show Gist options
  • Save jimytc/129993f3b4929791489648e0855b529f to your computer and use it in GitHub Desktop.
Save jimytc/129993f3b4929791489648e0855b529f to your computer and use it in GitHub Desktop.
# Configure HttpLog to capture the detail we want to know.
HttpLog.configure do |config|
# Enable or disable all logging
config.enabled = true
# You can assign a different logger
config.logger = Logger.new($stdout)
# I really wouldn't change this...
config.severity = Logger::Severity::DEBUG
# Tweak which parts of the HTTP cycle to log...
config.log_connect = true
config.log_request = true
config.log_headers = true
config.log_data = true
config.log_response = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment