logasm 0.2.2 → 0.2.3

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: 95ef4c8dd10a76b6775e23d3ed9788b8fd0c566e
4
- data.tar.gz: c42a97f69f78953749d22008b8dd8dadab680ba8
3
+ metadata.gz: 89d75c7fbd5b6b266b767c92aa55f963dd3d058e
4
+ data.tar.gz: e3425797d5df21071db126019373df4b10036dd7
5
5
  SHA512:
6
- metadata.gz: 71b8cd77787497193c97508a269c0d538c3fd2a38a8940eaff94174f5918222ff3d59ec8f1fbb1cd7b1f7c90f1147ea08e776762f5919a1eeb20f005b74cd460
7
- data.tar.gz: a766efc45eff5765e72353fc49c6680f31722e3bd81d710ceb0f64ef130901c8823349b6556f0bba3e33b07806e69cde3dd842937a621522b78d56af84961029
6
+ metadata.gz: e977d912a5e4edf5fb42a426de334131c9802e01759dc0683f2946131308f96c02b5f4b4f39b9e25af114d925cefc20f1ee0d43a9e2915c595b32ff99c890b2d
7
+ data.tar.gz: 8222dd3db656c1796075e7df9c25f90dc1aec98ba3ee0163be9385fa87e04ee553f79f6cf286358ee73bb2e536ca0b1a25e8580e435cef31906308abd3e4a197
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- logasm (0.2.2)
4
+ logasm (0.2.3)
5
5
  inflecto
6
6
 
7
7
  GEM
@@ -54,3 +54,6 @@ DEPENDENCIES
54
54
  pry
55
55
  rake
56
56
  rspec
57
+
58
+ BUNDLED WITH
59
+ 1.10.6
@@ -16,7 +16,7 @@ class Logasm
16
16
 
17
17
  def initialize(level, service_name, arguments = {})
18
18
  config = arguments.select { |key, value| CONFIGURATION_KEYS.include?(key) }
19
- logger = Logger.new(STDOUT)
19
+ logger = NullLogger.new
20
20
  @queue = arguments.fetch(:queue, 'logstash-queue')
21
21
  @level = level
22
22
  @service_name = service_name
@@ -0,0 +1,18 @@
1
+ class Logasm
2
+ class NullLogger
3
+ def debug(*)
4
+ end
5
+
6
+ def info(*)
7
+ end
8
+
9
+ def warn(*)
10
+ end
11
+
12
+ def error(*)
13
+ end
14
+
15
+ def fatal(*)
16
+ end
17
+ end
18
+ end
data/lib/logasm.rb CHANGED
@@ -3,6 +3,7 @@ require 'logger'
3
3
  require 'json'
4
4
  require_relative 'logasm/adapters'
5
5
  require_relative 'logasm/utils'
6
+ require_relative 'logasm/null_logger'
6
7
 
7
8
  class Logasm
8
9
  def self.build(service_name, loggers_config)
data/logasm.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "logasm"
7
- gem.version = '0.2.2'
7
+ gem.version = '0.2.3'
8
8
  gem.authors = ["Salemove"]
9
9
  gem.email = ["support@salemove.com"]
10
10
  gem.description = %q{It's logasmic}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salemove
@@ -87,6 +87,7 @@ files:
87
87
  - lib/logasm/adapters/logstash_adapter/formatter.rb
88
88
  - lib/logasm/adapters/rabbitmq_adapter.rb
89
89
  - lib/logasm/adapters/stdout_adapter.rb
90
+ - lib/logasm/null_logger.rb
90
91
  - lib/logasm/utils.rb
91
92
  - logasm.gemspec
92
93
  - spec/adapters/logstash_adapter/formatter_spec.rb