Sha256: c5b2a1c6f12d1723c724bad17f654e516237b76b0e1a6f7b72ca0bf1a45f2d54

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 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 outgoing HTTP requests and their responses 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
  HttpLog.options[:log_status]   = true
  HttpLog.options[:log_response] = 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

1 entries across 1 versions & 1 rubygems

Version Path
httplog-0.0.7 README.rdoc