blabbermouth-syslog 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53db9618689c76c96ee4e61dac998791b8c2f93f
4
- data.tar.gz: 08d1bd803ed0d3b7296b43b63004b9c9b7869203
3
+ metadata.gz: 596c42a2be391fff6882e04e603c073422903c88
4
+ data.tar.gz: 88e610762c7fc3e0fd6fe8f38ab1356a98755035
5
5
  SHA512:
6
- metadata.gz: cebff46f804ef18afd7cb42d0689b63b6fe7d95424a21990722970329a82182e30a19a37ca44318300aa7c4737ea58d72fc2b8805c6da77689ff7c16c15f06b1
7
- data.tar.gz: fd7df5d47ff95d5ea1a13b35d543c553322b48ba025485d5473598a8c880642546964c4017f075ec8ab692c6470d6820f88300601e0cd7b823284e087e1b0205
6
+ metadata.gz: 67cceecc28e12187916d417558f59616cf4ea658cdcc30381cefd860f0cff5cf1477ac3aaf7b4ce75e2c3dbf3575ccf517a4ec619c10e7c7b93bd93e11ac7bc0
7
+ data.tar.gz: f410d0797bea8899bcc128ca74b533098acf01c55909d07ed759af86fac98ec8efd0a3aa5276c311c470ad8cff65f9a9a6082a55a6353c8d647667cf5119d71d
@@ -19,6 +19,7 @@ module Blabbermouth
19
19
  def fatal(key, e, *args)
20
20
  relay :fatal, key, e, *args
21
21
  end
22
+ alias_method :critical, :fatal
22
23
 
23
24
  def info(key, msg=nil, *args)
24
25
  relay :info, key, msg, *args
@@ -31,6 +32,7 @@ module Blabbermouth
31
32
  def warn(key, msg=nil, *args)
32
33
  relay :warn, key, msg, *args
33
34
  end
35
+ alias_method :warning, :warn
34
36
 
35
37
  def time(key, duration, *args)
36
38
  relay :time, key, duration, *args
@@ -49,6 +51,13 @@ module Blabbermouth
49
51
  log meth, key, args.first, data
50
52
  end
51
53
 
54
+ def log_message(event, key, msg, data={})
55
+ message = "Blabbermouth.#{event.to_s}: #{key.to_s}"
56
+ message += ": #{msg.to_s}" unless msg.to_s.blank?
57
+ message += " #{data.to_s}"
58
+ message
59
+ end
60
+
52
61
  protected
53
62
 
54
63
  def syslog
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blabbermouth-syslog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blabbermouth