plogger 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plogger/version.rb +1 -1
- data/lib/plogger.rb +5 -5
- 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: b979e2e7c0c67df3c2d6589c5f73df70015fc82a
|
4
|
+
data.tar.gz: dc151c7d5a246bfbaa916515a7884237e5aa8a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216fcf0a063d4c4d91153fc2ec0ca2849b738a3f1b5e718ddb1e57a02734f66b646e14587a000c9ae2a22e4c0f82cf9d0564660225622cea2ae7bf1fbcd308b5
|
7
|
+
data.tar.gz: f2659a4ffd1b79d03c44a9bd81404eb29eb0d6fc780ab59d0e5e0ef5b8885ba5ba5da9d526ffc71d2b628fad47088a9c280925a26d18e4fb98b0d46b0995ae98
|
data/lib/plogger/version.rb
CHANGED
data/lib/plogger.rb
CHANGED
@@ -23,30 +23,30 @@ module Plogger
|
|
23
23
|
def exception(exception, type: 'system', category: '', user_id: '', account_id: '', extra_info: {})
|
24
24
|
handler = Plogger::Handler.new(config)
|
25
25
|
handler.handle_exception(exception, category: category, user_id: user_id, account_id: account_id,
|
26
|
-
extra_info: extra_info)
|
26
|
+
extra_info: extra_info.merge({log_severity: 'exception'}))
|
27
27
|
end
|
28
28
|
|
29
29
|
def error(message, type: 'system', category: '', user_id: '', account_id: '', extra_info: {})
|
30
30
|
handler = Plogger::Handler.new(config)
|
31
31
|
handler.handle_error(message, category: category, user_id: user_id, account_id: account_id,
|
32
|
-
extra_info: extra_info)
|
32
|
+
extra_info: extra_info.merge({log_severity: 'error'}))
|
33
33
|
end
|
34
34
|
|
35
35
|
def warn(message, type: 'system', category: '', user_id: '', account_id: '', extra_info: {})
|
36
36
|
handler = Plogger::Handler.new(config)
|
37
37
|
handler.handle_warning(message, category: category, user_id: user_id, account_id: account_id,
|
38
|
-
extra_info: extra_info)
|
38
|
+
extra_info: extra_info.merge({log_severity: 'warn'}))
|
39
39
|
end
|
40
40
|
|
41
41
|
def info(message, type: 'system', category: '', user_id: '', account_id: '', extra_info: {})
|
42
42
|
handler = Plogger::Handler.new(config)
|
43
43
|
handler.handle_info(message, category: category, user_id: user_id, account_id: account_id,
|
44
|
-
extra_info: extra_info)
|
44
|
+
extra_info: extra_info.merge({log_severity: 'info'}))
|
45
45
|
end
|
46
46
|
|
47
47
|
def debug(message, type: 'system', category: '', user_id: '', account_id: '', extra_info: {})
|
48
48
|
handler = Plogger::Handler.new(config)
|
49
49
|
handler.handle_debug(message, category: category, user_id: user_id, account_id: account_id,
|
50
|
-
extra_info: extra_info)
|
50
|
+
extra_info: extra_info.merge({log_severity: 'debug'}))
|
51
51
|
end
|
52
52
|
end
|