itz_logger 0.2.7 → 0.2.8
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/logger.rb +7 -0
- 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: eeda4a17389816251f0c2b186b546423fd7d0805ab400771fde20c24f98e9ffd
|
4
|
+
data.tar.gz: 3770bbe95a92bc7e17ccd383d08a78b78a052837b7be20d0e73dc45d6829496c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cab13bf1ab87be10333910a20203e303d0a811502bfed82f5a2de25074cf50fb4ff27a3091b1128591902de7f10607e5953c79047e95483ca80764c7af32a1d
|
7
|
+
data.tar.gz: b0784545f5ff7444a48bb29cf2f2c14c313e460f31ee1a0883364e75ed61b78626ad3b0a911f8507483ba1c913a1c5a2a6d29e5cd5935a0dc55e099498515c4a
|
data/lib/itz_logger/logger.rb
CHANGED
@@ -2,11 +2,14 @@
|
|
2
2
|
require_relative "./log_terminal"
|
3
3
|
require_relative "./log_strategy"
|
4
4
|
|
5
|
+
require 'securerandom'
|
6
|
+
|
5
7
|
module ItzLogger
|
6
8
|
|
7
9
|
class Logger
|
8
10
|
|
9
11
|
@log_strategy = nil
|
12
|
+
@id = SecureRandom.hex(4)
|
10
13
|
|
11
14
|
def initialize(options = {})
|
12
15
|
|
@@ -51,5 +54,9 @@ module ItzLogger
|
|
51
54
|
@log_strategy.log_level
|
52
55
|
end
|
53
56
|
|
57
|
+
def id
|
58
|
+
@id
|
59
|
+
end
|
60
|
+
|
54
61
|
end
|
55
62
|
end
|
data/lib/itz_logger/version.rb
CHANGED