lite_logger 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/lite_logger/logger.rb +3 -2
- data/lib/lite_logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2f3c627b39839930ebd45fd9f908cbbd8a3d0392af6f22318ec23e4efee5ec8
|
4
|
+
data.tar.gz: 13c2b2f29b407d833149fa753ade41b6c9992140f3a374b004394338866fc87b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddd4cc3ca1f15c8db1166351fc97fcfc10ce4cdfbca4ca1fdc97ae85153a3f1d584e23757970fd12e9e628438be97ad878933ebfcdf1df6d73d734660f543c4b
|
7
|
+
data.tar.gz: 54a14d4c2f72b12f50c3bfcbe9f403aaecc0026ad7c70d8273f1bbfcdd35da2a37beca4fb648ff27d76aaf8c6c1af21611e1ccbfcbf963cd073d0b45cd79136c
|
data/CHANGELOG.md
CHANGED
data/lib/lite_logger/logger.rb
CHANGED
@@ -28,11 +28,12 @@ module LiteLogger
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def format_message(level, message)
|
31
|
+
current_time = Time.now
|
31
32
|
case @format
|
32
33
|
when :json
|
33
|
-
{ level: level, message: message, timestamp:
|
34
|
+
{ level: level, message: message, timestamp: current_time }.to_json
|
34
35
|
else
|
35
|
-
"#{
|
36
|
+
"#{current_time} [#{level.upcase}] #{message}"
|
36
37
|
end
|
37
38
|
end
|
38
39
|
|
data/lib/lite_logger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Ferrari
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|