mimi-logger 0.2.4 → 0.2.5

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
- SHA256:
3
- metadata.gz: c1a4d234d7ff7d1231bb2c24daac286cc13aaf9e6d77988e4ebf99cf3f3cf8a5
4
- data.tar.gz: 4c81afc027953e82bc377b9a275d4250ada710061791af70fd924a0900fa00d5
2
+ SHA1:
3
+ metadata.gz: ff39280fa18ca6e038a4be72c73e2ef5872c59f1
4
+ data.tar.gz: 5a99829862fc9034cc8c55e39cf1e51eedc24d36
5
5
  SHA512:
6
- metadata.gz: 36919d88c2a3a4772a47fcaf19df27adbc7ef083e64407afb1273b9d6f3a686c5ce5b80a6f1c97adabbe53cd396ce7e21ed61061f2c33861ee0117fa5d8ba72d
7
- data.tar.gz: 6f110b492e0646d95906144a0b5c4c9d007bc20b82894c10ad03100c54189781867f76106e083ee6f5144955e56004e9f155e0969a3d7d9f646d1f48b1b74b4e
6
+ metadata.gz: e8e7353ece0c06be660cefdc308c3d58fa76373caf2de99e0f44fbe1a5b51152327e5c9ea8291ac6d7fedfd8bbbcd20e2c36918656ef1a0f29989815381b40cb
7
+ data.tar.gz: 10f7a8bfe01ea80fa3bc0a1fbe4e94cc015279fc1f91d7fd5bc88403157f85b3ebfb6521dcd35efa431ab0808f63de09205a87ef844edc12aedfeba43966c9ba
@@ -19,8 +19,13 @@ module Mimi
19
19
  base.send(:define_singleton_method, :logger) { Mimi::Logger::Instance.instance }
20
20
  end
21
21
 
22
- def self.instance
23
- @logger ||= Mimi::Logger.new
22
+ # Returns a previously created logger instance, or initializes a new one
23
+ #
24
+ # @param args [Array] arguments to Logger initializer
25
+ #
26
+ def self.instance(*args)
27
+ raise 'Mimi::Logger::Instance already initialized' if @logger && !args.empty?
28
+ @logger ||= Mimi::Logger.new(*args)
24
29
  end
25
30
  end # module Instance
26
31
  end # class Logger
@@ -1,5 +1,5 @@
1
1
  module Mimi
2
2
  class Logger
3
- VERSION = '0.2.4'.freeze
3
+ VERSION = '0.2.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mimi-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kukushkin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-24 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mimi-core
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.7.6
126
+ rubygems_version: 2.6.14.1
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: A pre-configured logger for microservice applications