app_logger 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 808f94771e7d501dc69ff96e7ae05db2843fe1b0
4
- data.tar.gz: 8975e78b73785c1e242b32ecdd09975fae475fc2
3
+ metadata.gz: 9b949f2326f64988e2b6085fc8c98c9fef275c07
4
+ data.tar.gz: 0c40bd947f93c5f697d216a7c8b840deef6c7563
5
5
  SHA512:
6
- metadata.gz: 46996811345b9e28485e769a44e1bf8c072b991413d14afc7b22c8a929237e0a5aedfef9447766c92c58d89a415cc51f6fed3d840577a3eb32ce17b910c668e5
7
- data.tar.gz: a04cfefa5b920cd8da34b05dde0fc219020e1b40f8dff2e97c8b79b8fb1cb1a3131e07f247f787ded9ea7d1e94c259669aaacd6dc1733e470804424982894821
6
+ metadata.gz: d8f3f08e0fdfedf44c9e6178bc830f1fa2102008e61a4eac434a5b3cfa17e2a1906e28947317f5efae93ae02317df257e727565395d54ebae601ce8c62853226
7
+ data.tar.gz: daea457a04a3ec0a5255d7bc18df1c6d84c7abfb02753be776cdac336a4750160dc8c7783b375d8d80b6beda6e94afd0f466a920366140c3ae6589c884f2bccf
@@ -35,15 +35,14 @@ module AppLogger
35
35
 
36
36
  now = Time.now
37
37
  {
38
- host: env['HTTP_X_FORWARDED_FOR'] || env["REMOTE_ADDR"] || "-",
38
+ remote: env['HTTP_X_FORWARDED_FOR'] || env["REMOTE_ADDR"] || "-",
39
39
  user: env["REMOTE_USER"] || "-",
40
- time: now.iso8601,
41
40
  method: method,
42
41
  path: path,
43
42
  query: query,
44
43
  http_version: http_version,
45
- status_code: status.to_s[0..3],
46
- length: extract_content_length(header),
44
+ status: status.to_s[0..3].to_i,
45
+ response_length: extract_content_length(header).to_i,
47
46
  response_time: (now - began_at)
48
47
  }
49
48
  end
@@ -57,8 +56,8 @@ module AppLogger
57
56
  msg[:path],
58
57
  msg[:query],
59
58
  msg[:http_version],
60
- msg[:status_code],
61
- msg[:length],
59
+ msg[:status],
60
+ msg[:response_length],
62
61
  msg[:response_time]
63
62
  ]
64
63
  end
@@ -1,3 +1,3 @@
1
1
  module AppLogger
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - arukoh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-30 00:00:00.000000000 Z
11
+ date: 2016-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler