Sha256: 72ac71858b5240331b303d2477d19507f0404939929efcc7a3411fe683505c69

Contents?: true

Size: 673 Bytes

Versions: 2

Compression:

Stored size: 673 Bytes

Contents

= httplog

Log outgoing HTTP requests made from your application.

== Installation

  gem install httplog
  
== 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 override the following default options:

  HttpLog.options[:logger]       = Logger.new($stdout)
  HttpLog.options[:severity]     = Logger::Severity::DEBUG
  HttpLog.options[:log_connect]  = true
  HttpLog.options[:log_request]  = true
  HttpLog.options[:log_data]     = true

So if you want to use this in a Rails app:

  # file: config/initializers/httplog.rb
  
  HttpLog.options[:logger] = Rails.logger



Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
httplog-0.0.5 README.rdoc
httplog-0.0.4 README.rdoc