itz_logger 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itz_logger/formatter.rb +5 -3
- data/lib/itz_logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54fac3c5d4fdf043150db6594822de8af822a8720e13f5ee8a0c3c942e77b508
|
4
|
+
data.tar.gz: b70197329a6a3c23f1d6b9839ad9557231b5f76a4d14f9c3eea802058fccaec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e243a025c4234fe9fcd1353e1373394b6e024223af4db7d30fe7293ce0f9920319e3c5a5ddcf277055476c0e0194c57a9bf87deb36f3c520f1a895ec9183ac3
|
7
|
+
data.tar.gz: 86626b83505fa9be59bfb31f697f04c32a12c4b9ff0278bc4f39d0f472b49278c391190e8ee3e4433443c554e4e3f152414602c9f59abaab217577d366de74d3
|
data/lib/itz_logger/formatter.rb
CHANGED
@@ -9,9 +9,11 @@ module ItzLogger
|
|
9
9
|
class Formatter
|
10
10
|
|
11
11
|
def self.format(message)
|
12
|
-
|
13
|
-
"
|
14
|
-
|
12
|
+
printf(
|
13
|
+
"%-8s | %-26 | %s\n",
|
14
|
+
message.type.to_s.upcase,
|
15
|
+
message.created_at,
|
16
|
+
message.message)
|
15
17
|
end
|
16
18
|
|
17
19
|
end
|
data/lib/itz_logger/version.rb
CHANGED