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 +5 -5
- data/lib/mimi/logger/instance.rb +7 -2
- data/lib/mimi/logger/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ff39280fa18ca6e038a4be72c73e2ef5872c59f1
|
4
|
+
data.tar.gz: 5a99829862fc9034cc8c55e39cf1e51eedc24d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8e7353ece0c06be660cefdc308c3d58fa76373caf2de99e0f44fbe1a5b51152327e5c9ea8291ac6d7fedfd8bbbcd20e2c36918656ef1a0f29989815381b40cb
|
7
|
+
data.tar.gz: 10f7a8bfe01ea80fa3bc0a1fbe4e94cc015279fc1f91d7fd5bc88403157f85b3ebfb6521dcd35efa431ab0808f63de09205a87ef844edc12aedfeba43966c9ba
|
data/lib/mimi/logger/instance.rb
CHANGED
@@ -19,8 +19,13 @@ module Mimi
|
|
19
19
|
base.send(:define_singleton_method, :logger) { Mimi::Logger::Instance.instance }
|
20
20
|
end
|
21
21
|
|
22
|
-
|
23
|
-
|
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
|
data/lib/mimi/logger/version.rb
CHANGED
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
|
+
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-
|
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.
|
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
|