itz_logger 0.2.8 → 0.2.9
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 +1 -1
- 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: 290af155a18755e05214f0d49442951e2c193c9ff575a3f52c0dfecec115eb86
|
4
|
+
data.tar.gz: f4056760e55a92b26b8ec971732178a9f4d2034a4613ddac26b68aa102f46e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2e0b9f7985b5d17f5cdc1905ccdd0264bc3a632a57c96802b49b5d371a78b4e68d35bd91bf6f6d29857b1d09e46752d6b93a7b814b60874aebda5d4873221f1
|
7
|
+
data.tar.gz: 232229f967ba188be2fb1482e169632b7e4b74e1889829583df4a58cc8e2687465c525fe8f528d76c4c386a2f4f2b2ed296a569d78a4606cba57f215d08df540
|
data/lib/itz_logger/logger.rb
CHANGED
@@ -9,13 +9,13 @@ module ItzLogger
|
|
9
9
|
class Logger
|
10
10
|
|
11
11
|
@log_strategy = nil
|
12
|
-
@id = SecureRandom.hex(4)
|
13
12
|
|
14
13
|
def initialize(options = {})
|
15
14
|
|
16
15
|
log_level = options.fetch(:log_level, ItzLogger::MessageType::INFO)
|
17
16
|
log_strategy = options.fetch(:log_strategy, ItzLogger::LogStrategy::LOG_TERMINAL)
|
18
17
|
_log_file = options.fetch(:log_file, "./log/logfile.log")
|
18
|
+
@id = SecureRandom.hex(4)
|
19
19
|
|
20
20
|
@log_strategy =
|
21
21
|
case log_strategy
|
data/lib/itz_logger/version.rb
CHANGED