slog 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/slog/logger.rb +2 -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: 99914e76d76c773206dcb93cdec75fc345b0b9fc
|
4
|
+
data.tar.gz: a04c6a5bb361622561ec6ef4ee9e8f265e746c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ad6cba650e07f38f4ad412943de1ea6e2a84d5758c961eb631c3130141635f510e17d5ae61a1ac72eb211e27f03aad45434cf12a4b701547148b594692bbd8
|
7
|
+
data.tar.gz: b2fffa51afc6f89660091c28a709ca177d1ac1950eea0987dd843dd57602878e10be4d7a277ff8bd4dc5a1d6f301ed708c9de1bef4835b06afd2e0101034e904
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/slog/logger.rb
CHANGED
@@ -62,6 +62,7 @@ module Slog
|
|
62
62
|
@color_map = color_map
|
63
63
|
@level_field = level_field
|
64
64
|
@level_transform = level_transform
|
65
|
+
@message_field = message_field
|
65
66
|
@timestamp_field = timestamp_field
|
66
67
|
@timestamp_format = timestamp_format
|
67
68
|
|
@@ -98,7 +99,7 @@ module Slog
|
|
98
99
|
@level_field => severity.send(@level_transform),
|
99
100
|
@timestamp_field => datetime.strftime(@timestamp_format)
|
100
101
|
}
|
101
|
-
event.merge message
|
102
|
+
event.merge! message
|
102
103
|
event.delete nil # ignore @field if @field.nil?
|
103
104
|
event
|
104
105
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Clemmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|