• Stars
    star
    106
  • Rank 314,311 (Top 7 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 13 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Log your http api calls just like SQL queries

Net::HTTP logger

Simple gem that logs your HTTP api requests just like database queries

Screenshot

Installation

gem install http_logger

Usage

require 'http_logger'

HttpLogger.logger = Logger.new(...) # defaults to Rails.logger if Rails is defined
HttpLogger.colorize = true # Default: true
HttpLogger.ignore = [/newrelic\.com/]
HttpLogger.log_headers = false  # Default: false
HttpLogger.log_request_body  = false  # Default: true
HttpLogger.log_response_body = false  # Default: true
HttpLogger.level = :info # Desired log level as a symbol. Default: :debug
HttpLogger.collapse_body_limit # Change default truncate limit. Default: 5000

Alternative

Net::HTTP has a builtin logger that can be set via #set_debug_output. This method is only available at the instance level and it is not always accessible if used inside of a library. Also output of builtin debugger is not formed well for API debug purposes.

Integration

If you are using Net::HTTP#request hackers like FakeWeb make sure you require http_logger after all others because http_logger always calls "super", rather than others.

More Repositories

1

upterm

A terminal emulator for the 21st century.
TypeScript
19,318
star
2

js-routes

Brings Rails named routes to javascript
Ruby
1,592
star
3

Sleipnir

BDD-style framework for Swift
Swift
847
star
4

bozon

🛠 Command line tool for building, testing and publishing modern Electron applications
JavaScript
757
star
5

BloodMagic

BloodMagic is a framework, which gives you a way to create custom property attributes.
Objective-C
317
star
6

global

"Global" provides accessor methods for your configuration data
Ruby
282
star
7

applepie

Semantic and Modular CSS Toolkit
CSS
280
star
8

rack_session_access

Rack middleware that provides access to rack.session environment
Ruby
259
star
9

caphub

Generate centralized capistrano skeleton for multiple deployment
Ruby
230
star
10

smt_rails

Shared mustache templates for rails 3.
Ruby
110
star
11

rspec-example_steps

Given/When/Then steps for RSpec examples
Ruby
85
star
12

sht_rails

Shared handlebars templates for Rails 3
Ruby
76
star
13

actionmailer-balancer

A Ruby gem to send your ActionMailer mail through one of several delivery methods, selected by weight.
Ruby
76
star
14

capistrano-multiconfig

Capistrano extension that allows to use multiple configurations
Ruby
66
star
15

passenger-initscript

Manage multiple passenger instances
Shell
54
star
16

skypekit

Ruby FFI interface to libskypekit C library
Ruby
47
star
17

newrelic_platform_plugins

Ruby
41
star
18

piro

PiRo - it's Rocket for you Pivotal Tracker account
CoffeeScript
40
star
19

zero_deploy

Significantly improves typical deployment speed
Ruby
40
star
20

mailtrap-nodejs

Official mailtrap.io Node.js client
TypeScript
35
star
21

capistrano-calendar

Deployment event creation on (google) calendar service
Ruby
29
star
22

capistrano-patch

Capistrano patch recipes
Ruby
29
star
23

scaffy.railsware.com

Approach for writing and organizing your CSS for large-scale projects
JavaScript
29
star
24

mailtrap-php

The official mailtrap.io PHP client
PHP
20
star
25

libskypekit

Thread-safe C library with synchronous API using asynchronous C++ SkypeKit SDK
C
19
star
26

backfiller

The backfill machine for database records with null columns
Ruby
16
star
27

capistrano-ci

Ruby
16
star
28

indeed

Indeed.com integration plugin
Ruby
16
star
29

mailtrap-ruby

The official mailtrap.io Ruby client
Ruby
15
star
30

RBRouteBuilder

Build routes without strings and headache
C++
15
star
31

sprinkle_recipes

Railsware sprinkle recipes
Ruby
14
star
32

capistrano-uptodate

Capistrano extension that automatically check local repository with remote repository
Ruby
14
star
33

activeresource-persistent

HTTP persistent connection support for ActiveResource
Ruby
11
star
34

haproxy-slow-fast-request-balancer

HAProxy as "Slow-Fast" Request Balancer
10
star
35

generator-electron-app

Yeoman generator to scaffold Electron app
JavaScript
9
star
36

scout-app-plugins

Useful plugins for the Scout Server Monitoring and Reporting Tool
Ruby
9
star
37

mailtrap-python

Official mailtrap.io Python client
Python
8
star
38

web-bundler

WebResourceBundler bundling particular resource (css or js) in one file. Encoding images in base64 and putting then in css directly.
Ruby
8
star
39

gcal4ruby

Author: Mike Reich. GCal4Ruby is a Ruby Gem that can be used to interact with the current version of the Google Calendar API. GCal4Ruby provides the following features: Create and edit calendar events, Add and invite users to events, Set reminders, Make recurring events.
Ruby
8
star
40

db_structure_ext

Extended rails tasks db:structure:dump/load that supports mysql views/triggers/routines
Ruby
7
star
41

github-actions

A collection of GitHub actions used at Railsware
JavaScript
7
star
42

jdt

JSON Driven Templates
JavaScript
7
star
43

shelltoad

Command line interface for airbrake (http://airbrake.io/)
Ruby
7
star
44

i18n_template

18nTemplate is made to extract phrases and translate html/xhtml/xml document or erb templates
Ruby
6
star
45

capistrano-changelog

Chagelog based on Git commits with a Pivotal story tags
Ruby
5
star
46

go-global

Golang configuration reader for AWS Parameter Store and more
Go
4
star
47

chain_flow

Helps to refactor complex data processing
Ruby
4
star
48

fakes3server

Fake AWS S3 server for local development
Go
4
star
49

jOverlay

Overlay jQuery plugin
JavaScript
4
star
50

dev_vagrant_box

Vagrant box for development (ruby, rails)
4
star
51

yaml_settings

YamlSettings is a simple configuration / settings solution that uses an ERB enabled YAML file.
Ruby
3
star
52

multiversion

Use Bundler and RVM to test your library against different gem versions and/or ruby versions.
Ruby
3
star
53

ui-library

UI Library Template
CSS
2
star
54

clicktale

Clicktale rails plugin by Railsware
Ruby
2
star
55

railsware.github.com

CSS
2
star
56

capybara-feature_helpers

Ruby
2
star
57

backbone_showcase

Ruby
2
star
58

em-rest-client

EventMachine::HttpRequest adapter for HTTP REST client
Ruby
2
star
59

newrelic_em_http

New Relic EM::HTTP instrumentation
Ruby
2
star
60

capistrano-strategy-copy-partial

Capistrano deploy strategy to transfer subdirectory of repository
Ruby
2
star
61

hbase-driver

Small and handy Ruby driver for HBase
Ruby
2
star
62

acme-aws-lambda

AWS Lambda function to generate Letsencrypt certificates (need AWS S3 and Route53)
Ruby
2
star
63

showroom

Ruby
2
star
64

email_templates

HTML
2
star
65

rest_facebook

Lightweight ruby facebook client
Ruby
1
star
66

mail

A Really Ruby Mail Library
Ruby
1
star
67

plunger

Code review tool
Python
1
star
68

cat-aws-ssm-param

Go
1
star
69

rw-study-wishlist

Ruby
1
star
70

template

Rails project template
JavaScript
1
star
71

chef-rwci

Ruby
1
star
72

office-iot

Objective-C
1
star
73

simple_on_couch

Example of CouchApp application for RW articles
JavaScript
1
star
74

gdoc_mapreduce

JavaScript
1
star
75

scaffy

Repo moved to scaffy.railsware.com
1
star
76

highrise_assist

Assist for 37signals' highrise
Ruby
1
star
77

sidekiq_unique_retries

Unique Retries for Sidekiq
Ruby
1
star
78

skypekit_pure

Skypekit on pure ruby
Ruby
1
star
79

aws-ecs-tools

Ruby
1
star
80

capybara_mock

CapybaraMock
Ruby
1
star
81

handlebars_assets_i18n

Very simple handlebars_assets internationalization for .hamlbars and .slimbars templates
Ruby
1
star
82

paypal-sdk-http-adapters

HTTP Adapters for PayPal SDK
Ruby
1
star
83

harvest_report

Harvert reports for non-admin harvest users
Ruby
1
star
84

rest-client-adapters

RestClient Adapters
Ruby
1
star
85

versioned_item

Ruby
1
star
86

cordova-baxi-plugin

Java
1
star
87

column_info_reset

Reset ActiveRecord column info when unknown column exception occurs
Ruby
1
star
88

gdoc_pivotal

Gdoc updater for pivotal
JavaScript
1
star
89

mailtrap-examples

Mailtrap repo examples
HTML
1
star
90

mailtrap-elixir

The official mailtrap.io Elixir client
Elixir
1
star