mimi-logger 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/lib/mimi/logger/version.rb +1 -1
- data/lib/mimi/logger.rb +12 -2
- 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: a9e27d4de5da546bde567946828ee4e2cfffcd43
|
4
|
+
data.tar.gz: abb9ff6842b419092747cec69d76e9531eb5e157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84691cfe5f129a37895126f34c64d0f3636998aee4f9b5045172861373c554072fd7fe104f2bea0d7c6741b8c8099f8d80a29064266b2a826c9e7d00622dda0e
|
7
|
+
data.tar.gz: f745519a3727bb2800f8d46358e79679d0d04c739e29b3420ec3f3c8bb5960823987adee801c73a236ca403dddf019c15d8c7063dc17d8804ec41c2af46b5b39
|
data/Gemfile
CHANGED
data/lib/mimi/logger/version.rb
CHANGED
data/lib/mimi/logger.rb
CHANGED
@@ -18,7 +18,8 @@ module Mimi
|
|
18
18
|
] => :logger_instance
|
19
19
|
|
20
20
|
default_options(
|
21
|
-
level: 'info'
|
21
|
+
level: 'info',
|
22
|
+
cr_character: '↲' # alternative CR: ↵ ↲ ⏎
|
22
23
|
)
|
23
24
|
|
24
25
|
# Creates a new Logger instance
|
@@ -91,9 +92,18 @@ module Mimi
|
|
91
92
|
|
92
93
|
def self.formatter
|
93
94
|
proc do |severity, _datetime, _progname, message|
|
94
|
-
"#{severity.to_s[0]}, #{message}\n"
|
95
|
+
"#{severity.to_s[0]}, #{message.to_s.tr("\n", module_options[:cr_character])}\n"
|
95
96
|
end
|
96
97
|
end
|
98
|
+
|
99
|
+
def self.module_manifest
|
100
|
+
{
|
101
|
+
log_level: {
|
102
|
+
desc: 'Logging level (any of the "debug", "info", "warn", "error", "fatal")',
|
103
|
+
default: 'info'
|
104
|
+
}
|
105
|
+
}
|
106
|
+
end
|
97
107
|
end # class Logger
|
98
108
|
end # module Mimi
|
99
109
|
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Kukushkin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mimi-core
|