slog 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/slog/logger.rb +2 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d3de78de50b7caaa19ac71dd29c9a7b5acfc3a5
4
- data.tar.gz: 0a2ba828d3563e997df44394cee048b1d9ef6638
3
+ metadata.gz: 99914e76d76c773206dcb93cdec75fc345b0b9fc
4
+ data.tar.gz: a04c6a5bb361622561ec6ef4ee9e8f265e746c14
5
5
  SHA512:
6
- metadata.gz: fda260806e74c4109edd77f0bdebf6b9e236427e0387300fd83eba5828ce396eb2d58340451b42497d70a037769612fc7b02ceb1ab43faed098c2e4d28b46d06
7
- data.tar.gz: 76ddc56ef3243f5e3a800f1f47a167a65af6d456f491cceae4e7705fffad2668394a96cbf5da3a2a6fb7e69e9e9e340deb5514ee4943e2a62dd3a0b8ceff2415
6
+ metadata.gz: 72ad6cba650e07f38f4ad412943de1ea6e2a84d5758c961eb631c3130141635f510e17d5ae61a1ac72eb211e27f03aad45434cf12a4b701547148b594692bbd8
7
+ data.tar.gz: b2fffa51afc6f89660091c28a709ca177d1ac1950eea0987dd843dd57602878e10be4d7a277ff8bd4dc5a1d6f301ed708c9de1bef4835b06afd2e0101034e904
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize