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 +4 -4
- data/lib/app_logger/middleware.rb +5 -6
- data/lib/app_logger/version.rb +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: 9b949f2326f64988e2b6085fc8c98c9fef275c07
|
4
|
+
data.tar.gz: 0c40bd947f93c5f697d216a7c8b840deef6c7563
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
46
|
-
|
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[:
|
61
|
-
msg[:
|
59
|
+
msg[:status],
|
60
|
+
msg[:response_length],
|
62
61
|
msg[:response_time]
|
63
62
|
]
|
64
63
|
end
|
data/lib/app_logger/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|