trivial_log_formatter 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trivial_log_formatter.rb +1 -1
- data/lib/trivial_log_formatter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6625ba26dd41c40749d5dc25e043d6094d54573
|
4
|
+
data.tar.gz: f08231b8a081d131805cc39b4bbd175918e74dfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e504a090e4f34dcbaf958bc493dc8d1db185ec481f9c90846a46a1fdc5c3f0a296e4c0e143f2ac0495efb942a53c4e94e3aaf900a2bc41ee97aa26fddf5927
|
7
|
+
data.tar.gz: e1fefb5ff9c221f4cc72a54855099d876cfc26633420cd13d69c5cadcebfa03cd11c2b0e8c50b3f42bd86d2c2b0b2c88583cc06ebfcff7981709aedc9d560dd5
|
@@ -5,7 +5,7 @@ module TrivialLogFormatter
|
|
5
5
|
|
6
6
|
class Formatter < ::Logger::Formatter
|
7
7
|
FORMAT = "\033[%sm[%s#%d] %5s -- %s: %s\033[0m\n"
|
8
|
-
SEVERITY_COLOR_MAP = {:debug => '0
|
8
|
+
SEVERITY_COLOR_MAP = {:debug => '0', :info => '32', :warn => '33', :error => '31', :fatal => '31', :unknown => '0;37'}
|
9
9
|
|
10
10
|
def call(severity, time, progname, msg)
|
11
11
|
msg = '' if msg.nil?
|