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 +4 -4
- data/lib/blabbermouth/syslog/bystander.rb +9 -0
- 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: 596c42a2be391fff6882e04e603c073422903c88
|
4
|
+
data.tar.gz: 88e610762c7fc3e0fd6fe8f38ab1356a98755035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
11
|
+
date: 2016-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blabbermouth
|