logstash-logger 0.15.1 → 0.15.2

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: 9a8e0734bd0348fee64e87295adae22937832106
4
- data.tar.gz: e6043bd7112766230e8af2089573a71e924dcdd6
3
+ metadata.gz: df9a6bdcc6c820482f78f45ca8df59d79e710326
4
+ data.tar.gz: 3970d44262a720e4e4a7ebae6d26429d437f8f7b
5
5
  SHA512:
6
- metadata.gz: 775468f1606a51ca0379dd19daddb4171ca3eb69b39dea2e8ec5617758e7aad53c4ca687d14258f6afb310b10076b705ea43fb683bdfa16202c1f2fae1a59a83
7
- data.tar.gz: 86eff3cd6e4b0193d312a5458fde4a17b2048868e249e6b6e58603cf3c46d243742b1ea31362ad7d059543faee4bd9aa36ecc7b468d23f27c174204d7652900f
6
+ metadata.gz: 656fab36ad7b8165f2f3266250f1ed5e9c804c2e0de86e5d742b70eff3a4340022968e9cd94c6aa3fb632674e581b0e59464f8f2b0785824e9d32ab2b717b4af
7
+ data.tar.gz: f0831f1e72cd7e1c604fcdf8519cf5cf6f31f60ad57fab6c69adbe5e14fe307eb315a60172c08cdfb7dd2bb7390bcd7d080d7c127b31ac944a2638136ff6b609
@@ -1,3 +1,6 @@
1
+ ## 0.15.2
2
+ - Fixes Windows support. [#64](https://github.com/dwbutler/logstash-logger/issues/64)
3
+
1
4
  ## 0.15.1
2
5
  - Fixes MultiLogger overriding each logger with the default formatter. [#61](https://github.com/dwbutler/logstash-logger/issues/61)
3
6
 
@@ -1,11 +1,6 @@
1
1
  require 'logger'
2
2
  require 'logstash-logger/tagged_logging'
3
3
 
4
- autoload :Syslog, 'syslog'
5
- module Syslog
6
- autoload :Logger, 'syslog/logger'
7
- end
8
-
9
4
  module LogStashLogger
10
5
  autoload :MultiLogger, 'logstash-logger/multi_logger'
11
6
 
@@ -83,6 +78,8 @@ module LogStashLogger
83
78
 
84
79
  def self.build_syslog_logger(opts)
85
80
  logger = begin
81
+ require 'syslog/logger'
82
+
86
83
  Syslog::Logger.new(opts[:program_name], opts[:facility])
87
84
  rescue ArgumentError
88
85
  Syslog::Logger.new(opts[:program_name])
@@ -1,3 +1,3 @@
1
1
  module LogStashLogger
2
- VERSION = "0.15.1"
2
+ VERSION = "0.15.2"
3
3
  end
@@ -3,7 +3,7 @@ require 'logstash-logger'
3
3
  describe LogStashLogger do
4
4
  context "Syslog" do
5
5
  let(:program_name) { "MyApp" }
6
- let(:facility) { Syslog::LOG_LOCAL0 }
6
+ let(:facility) { 128 } #Syslog::LOG_LOCAL0 }
7
7
  subject { LogStashLogger.new(type: :syslog, program_name: program_name, facility: facility) }
8
8
  let(:syslog) { subject.class.class_variable_get(:@@syslog) }
9
9
 
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.1
4
+ version: 0.15.2
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-10-06 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-event