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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69b1d63b51fc0bc2a4b205a10c71dda4c33674ba
4
- data.tar.gz: d3809569ef0c86aba1368243cbbcefec5b1b8c62
3
+ metadata.gz: a9e27d4de5da546bde567946828ee4e2cfffcd43
4
+ data.tar.gz: abb9ff6842b419092747cec69d76e9531eb5e157
5
5
  SHA512:
6
- metadata.gz: 869c7890e0923162a8fb7d20a7910c6e0d488a5fb7dc6b7b5a38e9c8600146f36f4b6269253ffcfdbd81ecb0c986c218e975b56901c67c8af95e878a28e0e70c
7
- data.tar.gz: a0703736c7f5764b70073f750426be8793598137495613cdc844feae89835e264b7ef29685ff0547321eb6f0ca6b4e31566a2ecb774b0630c17c29a63be7c733
6
+ metadata.gz: 84691cfe5f129a37895126f34c64d0f3636998aee4f9b5045172861373c554072fd7fe104f2bea0d7c6741b8c8099f8d80a29064266b2a826c9e7d00622dda0e
7
+ data.tar.gz: f745519a3727bb2800f8d46358e79679d0d04c739e29b3420ec3f3c8bb5960823987adee801c73a236ca403dddf019c15d8c7063dc17d8804ec41c2af46b5b39
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- gem 'mimi-core', path: '/mimi-core'
@@ -1,5 +1,5 @@
1
1
  module Mimi
2
2
  class Logger
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
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.0
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-04-29 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mimi-core