dohlog 0.1.2 → 0.1.3
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.
- data/lib/doh/log/interface.rb +4 -0
- data/lib/doh/log/severity.rb +5 -4
- metadata +11 -6
data/lib/doh/log/interface.rb
CHANGED
@@ -25,6 +25,10 @@ class Interface
|
|
25
25
|
@@acceptor.add(Event.new(DohLog::INFO, msg, @location))
|
26
26
|
end
|
27
27
|
|
28
|
+
def notify(msg)
|
29
|
+
@@acceptor.add(Event.new(DohLog::NOTIFY, msg, @location))
|
30
|
+
end
|
31
|
+
|
28
32
|
def warn(msg)
|
29
33
|
@@acceptor.add(Event.new(DohLog::WARN, msg, @location))
|
30
34
|
end
|
data/lib/doh/log/severity.rb
CHANGED
@@ -2,10 +2,11 @@ module DohLog
|
|
2
2
|
|
3
3
|
DEBUG = 0
|
4
4
|
INFO = 1
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
NOTIFY = 2
|
6
|
+
WARN = 3
|
7
|
+
ERROR = 4
|
8
|
+
FATAL = 5
|
9
|
+
SEVERITY_LEVELS = %w(debug info NOTIFY WARNING ERROR ***FATAL***)
|
9
10
|
|
10
11
|
def self.severity_text(level)
|
11
12
|
SEVERITY_LEVELS[level]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dohlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,19 +10,24 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-05-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dohutil
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.2.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 0.2.3
|
26
31
|
description: Logging framework built to be fast and flexible by leveraging the power
|
27
32
|
of zeromq.
|
28
33
|
email:
|
@@ -63,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
68
|
version: '0'
|
64
69
|
requirements: []
|
65
70
|
rubyforge_project:
|
66
|
-
rubygems_version: 1.8.
|
71
|
+
rubygems_version: 1.8.24
|
67
72
|
signing_key:
|
68
73
|
specification_version: 3
|
69
74
|
summary: zeromq powered logging framework
|