plogger 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plogger.rb +5 -5
- data/lib/plogger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f798f4f3fae7def7fc7de74d813b6e38976eb5
|
4
|
+
data.tar.gz: 6420fe520d8c4fc52cb8c9081b8876d467f2a59f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 004c391a76f91e6904b754326786282468b33e05d392ddd72501eec84e7183f7b270fb8ce0c897b94a7a854c629dc3f43891f9e633e1dc979a6f432c32b7ded7
|
7
|
+
data.tar.gz: a9aa14ec9c54fc407cc7a10130cb072295889f32817a922f3ecd44885ffb01b679a26169ac779ca1ad4893b079e63c0882cdfca70cc2ad9b6c844f66a3159088
|
data/lib/plogger.rb
CHANGED
@@ -20,31 +20,31 @@ module Plogger
|
|
20
20
|
@@config = config
|
21
21
|
end
|
22
22
|
|
23
|
-
def exception(exception, type: '', category: '', user_id: '', account_id: '', extra_info: {})
|
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
26
|
extra_info: extra_info)
|
27
27
|
end
|
28
28
|
|
29
|
-
def error(message, type: '', category: '', user_id: '', account_id: '', extra_info: {})
|
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
32
|
extra_info: extra_info)
|
33
33
|
end
|
34
34
|
|
35
|
-
def warn(message, type: '', category: '', user_id: '', account_id: '', extra_info: {})
|
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
38
|
extra_info: extra_info)
|
39
39
|
end
|
40
40
|
|
41
|
-
def info(message, type: '', category: '', user_id: '', account_id: '', extra_info: {})
|
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
44
|
extra_info: extra_info)
|
45
45
|
end
|
46
46
|
|
47
|
-
def debug(message, type: '', category: '', user_id: '', account_id: '', extra_info: {})
|
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
50
|
extra_info: extra_info)
|
data/lib/plogger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plogger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Merrill
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|