rack-ltsv_logger 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/rack/ltsv_logger.rb +1 -3
- data/rack-ltsv_logger.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 987267c5e1469fd1a9ad94c468c9755a4ecb9999
|
4
|
+
data.tar.gz: d244d4b74d07fc31c073583f84c3b41fbf85c102
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb48db461edf5cc8dfbb59d6f05ebca624b6a0de09158a7dfde52b35e2a1d7a3204f3a1a3551e9eb8cd1e86f689513e4e79fc8f99eefcd5c0843d828ffd1fa1e
|
7
|
+
data.tar.gz: 8786999d9dd5e5cb77506cacb21d8126e1983e78f3251882954c8266317e3db6a800f67c9ae115855d3deccf755d3e24793b678767a5d7ca951cc93edfbcc99f
|
data/CHANGELOG.md
CHANGED
data/lib/rack/ltsv_logger.rb
CHANGED
@@ -2,8 +2,6 @@ require 'time'
|
|
2
2
|
|
3
3
|
module Rack
|
4
4
|
class LtsvLogger
|
5
|
-
PID = Process.pid
|
6
|
-
|
7
5
|
def initialize(app, logger=nil, appends = {})
|
8
6
|
@app = app
|
9
7
|
@logger = logger || $stdout
|
@@ -20,7 +18,7 @@ module Rack
|
|
20
18
|
|
21
19
|
params = {
|
22
20
|
time: now.iso8601,
|
23
|
-
pid:
|
21
|
+
pid: Process.pid,
|
24
22
|
host: env["REMOTE_ADDR"] || "-",
|
25
23
|
forwardedfor: env['HTTP_X_FORWARDED_FOR'] || "-",
|
26
24
|
user: env["REMOTE_USER"] || "-",
|
data/rack-ltsv_logger.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rack-ltsv_logger"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.3"
|
8
8
|
spec.authors = ["Naotoshi Seo"]
|
9
9
|
spec.email = ["sonots@gmail.com"]
|
10
10
|
spec.description = %q{A rack middleware to output access log in ltsv format}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-ltsv_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02
|
11
|
+
date: 2016-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|