logstash-logger 0.15.0 → 0.15.1

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: 279993e60535511de3a792fdbd892bb52f6dee55
4
- data.tar.gz: c0286204549928ed8caca944c8533a8468250333
3
+ metadata.gz: 9a8e0734bd0348fee64e87295adae22937832106
4
+ data.tar.gz: e6043bd7112766230e8af2089573a71e924dcdd6
5
5
  SHA512:
6
- metadata.gz: 0c2666eacf05151711814889f806b4ad2ea72b497455cab575b6ffa8e61f5decca9866f32d00f24751661707ad9f0d92efa9190feed248601fe7634e880772c5
7
- data.tar.gz: 0d650d201b8896905b7cf9b96edf9f58e8d762337e3a9cc9ef35834fad190b0ddc6dce65071de17c988656079bf30f3b8dff5d8f98b4bcd5408511dfd3c95624
6
+ metadata.gz: 775468f1606a51ca0379dd19daddb4171ca3eb69b39dea2e8ec5617758e7aad53c4ca687d14258f6afb310b10076b705ea43fb683bdfa16202c1f2fae1a59a83
7
+ data.tar.gz: 86eff3cd6e4b0193d312a5458fde4a17b2048868e249e6b6e58603cf3c46d243742b1ea31362ad7d059543faee4bd9aa36ecc7b468d23f27c174204d7652900f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.15.1
2
+ - Fixes MultiLogger overriding each logger with the default formatter. [#61](https://github.com/dwbutler/logstash-logger/issues/61)
3
+
1
4
  ## 0.15.0
2
5
  - Adds buffering and automatic retry support for all connectable outputs. [#35](https://github.com/dwbutler/logstash-logger/pull/35)
3
6
 
@@ -24,7 +24,7 @@ module LogStashLogger
24
24
 
25
25
  def formatter=(formatter)
26
26
  @loggers.each do |logger|
27
- logger.formatter = formatter
27
+ logger.formatter ||= formatter
28
28
  end
29
29
  end
30
30
 
@@ -1,3 +1,3 @@
1
1
  module LogStashLogger
2
- VERSION = "0.15.0"
2
+ VERSION = "0.15.1"
3
3
  end
@@ -18,8 +18,8 @@ describe LogStashLogger::MultiLogger do
18
18
  end
19
19
 
20
20
  it "allows a different formatter for each logger" do
21
- expect(subject.loggers[0].formatter).to be_a ::Logger::Formatter
22
- expect(subject.loggers[1].formatter).to be_a LogStashLogger::Formatter::JsonLines
21
+ expect(subject.loggers[0].formatter.class).to eq ::Logger::Formatter
22
+ expect(subject.loggers[1].formatter.class).to eq LogStashLogger::Formatter::JsonLines
23
23
  end
24
24
 
25
25
  it "logs to all loggers" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Butler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-event