fluent-logger 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/VERSION +1 -1
- data/fluent-logger.gemspec +3 -5
- data/lib/fluent/logger/fluent_logger.rb +7 -6
- data/lib/fluent/logger/version.rb +3 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 534a2ccb4ce18b0c8082c309d464d6291ede39f5
|
4
|
+
data.tar.gz: d57458f299eccdff242de08e5d6ea03d2cee4ed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5f6dc505d218591c81b5945f894aef62551610a404f8ce6e68b88f5bed88165b9a931a22cd99e3f02180575b0d6d367d617dcd287d544914eecbcf03b349b3f
|
7
|
+
data.tar.gz: 3e4f91caab8f1d472709611867dbe6e3ade664d0fe954123f08e193a18922e359bb7ca3665f04d552ba7432db2802dd1dd322d7cfcc3bcbda49c83724d19109a
|
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
data/fluent-logger.gemspec
CHANGED
@@ -26,16 +26,17 @@ module Fluent
|
|
26
26
|
class EventTime
|
27
27
|
TYPE = 0
|
28
28
|
|
29
|
-
def initialize(
|
30
|
-
@
|
29
|
+
def initialize(sec, nsec = 0)
|
30
|
+
@sec = sec
|
31
|
+
@nsec = nsec
|
31
32
|
end
|
32
33
|
|
33
34
|
def to_msgpack(io = nil)
|
34
|
-
@
|
35
|
+
@sec.to_msgpack(io)
|
35
36
|
end
|
36
37
|
|
37
38
|
def to_msgpack_ext
|
38
|
-
[@
|
39
|
+
[@sec, @nsec].pack('NN')
|
39
40
|
end
|
40
41
|
|
41
42
|
def self.from_msgpack_ext(data)
|
@@ -43,7 +44,7 @@ module Fluent
|
|
43
44
|
end
|
44
45
|
|
45
46
|
def to_json(*args)
|
46
|
-
@
|
47
|
+
@sec
|
47
48
|
end
|
48
49
|
end
|
49
50
|
|
@@ -130,7 +131,7 @@ module Fluent
|
|
130
131
|
@logger.debug { "event: #{tag} #{map.to_json}" rescue nil } if @logger.debug?
|
131
132
|
tag = "#{@tag_prefix}.#{tag}" if @tag_prefix
|
132
133
|
if @nanosecond_precision && time.is_a?(Time)
|
133
|
-
write [tag, EventTime.new(time), map]
|
134
|
+
write [tag, EventTime.new(time.to_i, time.nsec), map]
|
134
135
|
else
|
135
136
|
write [tag, time.to_i, map]
|
136
137
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.6.
|
165
|
+
rubygems_version: 2.6.13
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: fluent logger for ruby
|