Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Log outgoing Net::HTTP requests
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
httplog.gemspec

README.rdoc

HttpLog

Log outgoing Net::HTTP requests in your favorite ruby logger.

Installation

Not yet on rubygems, so get if from here please.

Usage

require 'httplog'

Yup, that's it. By default, this will log all Net::HTTP.request calls to $stdout on DEBUG level.

Configuration

You can set a different logger:

HttpLog.logger = Rails.logger

And change the severity at which requests are logged

HttpLog.severity = Logger::Severity::INFO
Something went wrong with that request. Please try again.