plogger 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4f798f4f3fae7def7fc7de74d813b6e38976eb5
4
- data.tar.gz: 6420fe520d8c4fc52cb8c9081b8876d467f2a59f
3
+ metadata.gz: b979e2e7c0c67df3c2d6589c5f73df70015fc82a
4
+ data.tar.gz: dc151c7d5a246bfbaa916515a7884237e5aa8a31
5
5
  SHA512:
6
- metadata.gz: 004c391a76f91e6904b754326786282468b33e05d392ddd72501eec84e7183f7b270fb8ce0c897b94a7a854c629dc3f43891f9e633e1dc979a6f432c32b7ded7
7
- data.tar.gz: a9aa14ec9c54fc407cc7a10130cb072295889f32817a922f3ecd44885ffb01b679a26169ac779ca1ad4893b079e63c0882cdfca70cc2ad9b6c844f66a3159088
6
+ metadata.gz: 216fcf0a063d4c4d91153fc2ec0ca2849b738a3f1b5e718ddb1e57a02734f66b646e14587a000c9ae2a22e4c0f82cf9d0564660225622cea2ae7bf1fbcd308b5
7
+ data.tar.gz: f2659a4ffd1b79d03c44a9bd81404eb29eb0d6fc780ab59d0e5e0ef5b8885ba5ba5da9d526ffc71d2b628fad47088a9c280925a26d18e4fb98b0d46b0995ae98
@@ -1,3 +1,3 @@
1
1
  module Plogger
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plogger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Merrill