rack-traffic-logger 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/rack/traffic_logger/request.rb +1 -1
- data/lib/rack/traffic_logger/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7debb46298745ccb052d95bf8fd4d10f84e74ed4
|
4
|
+
data.tar.gz: 5703643e58532d5a71d96d22cba2a471509eca67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5b558a4fc926fbff6a1f4c01d1b1e5c71b5666c10b2a7a8b6b17c0264cf581415f6c7bd56012ba2b6038e779f00b69c1395a230fd52098870a2251fba88fa1d
|
7
|
+
data.tar.gz: c75206d7aafc20eb80a8b909d3b1c34b7a8b46ad16487b0ae2f681dd8400992be7bf1f675e14d30884370dd4a6ca02b0c899b406abebfc97af20af32cf1c1fec
|
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# Rack::TrafficLogger
|
2
2
|
|
3
|
-
|
3
|
+
[![Build Status](https://travis-ci.org/hx/rack-traffic-logger.svg?branch=develop)](https://travis-ci.org/hx/rack-traffic-logger)
|
4
|
+
[![Coverage Status](https://img.shields.io/coveralls/hx/rack-traffic-logger/develop.svg)](https://coveralls.io/r/hx/rack-traffic-logger?branch=develop)
|
5
|
+
|
6
|
+
This is Rack middleware for logging incoming/outgoing HTTP/S traffic.
|
4
7
|
|
5
8
|
## Installation
|
6
9
|
|
@@ -170,7 +173,6 @@ Rack::TrafficLogger.use on: self,
|
|
170
173
|
filter: ENV['LOG_INBOUND_HTTP'],
|
171
174
|
formatter: Rack::TrafficLogger::Formatter::JSON.new,
|
172
175
|
log_path: ::File.expand_path('../log/http_in.log', __FILE__)
|
173
|
-
|
174
176
|
```
|
175
177
|
|
176
178
|
- Express setup will send `use` to the object passed to the `on:` argument. In a rack-up file, pass `self`.
|
@@ -183,7 +185,7 @@ Rack::TrafficLogger.use on: self,
|
|
183
185
|
Under typical conditions, express setup internally calls:
|
184
186
|
|
185
187
|
```ruby
|
186
|
-
on.use Rack::TrafficLogger, log_path, formatter,
|
188
|
+
on.use Rack::TrafficLogger, log_path, formatter, filter
|
187
189
|
```
|
188
190
|
|
189
191
|
### Tailing a JSON log
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-traffic-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil E. Pearson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -59,9 +59,9 @@ require_paths:
|
|
59
59
|
- lib
|
60
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
|
-
- - "
|
62
|
+
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
64
|
+
version: '2.1'
|
65
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
@@ -69,9 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.
|
72
|
+
rubygems_version: 2.4.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Rack Raw HTTP Traffic Logger
|
76
76
|
test_files: []
|
77
|
-
has_rdoc:
|