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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash-logger/logger.rb +2 -5
- data/lib/logstash-logger/version.rb +1 -1
- data/spec/syslog_spec.rb +1 -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: df9a6bdcc6c820482f78f45ca8df59d79e710326
|
4
|
+
data.tar.gz: 3970d44262a720e4e4a7ebae6d26429d437f8f7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 656fab36ad7b8165f2f3266250f1ed5e9c804c2e0de86e5d742b70eff3a4340022968e9cd94c6aa3fb632674e581b0e59464f8f2b0785824e9d32ab2b717b4af
|
7
|
+
data.tar.gz: f0831f1e72cd7e1c604fcdf8519cf5cf6f31f60ad57fab6c69adbe5e14fe307eb315a60172c08cdfb7dd2bb7390bcd7d080d7c127b31ac944a2638136ff6b609
|
data/CHANGELOG.md
CHANGED
@@ -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])
|
data/spec/syslog_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-event
|