logjam_agent 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/logjam_agent/syslog_like_formatter.rb +5 -1
- data/lib/logjam_agent/version.rb +1 -1
- data/logjam_agent.gemspec +3 -2
- metadata +36 -8
@@ -13,7 +13,11 @@ module LogjamAgent
|
|
13
13
|
SEV_LABEL = Logger::SEV_LABEL.map{|sev| "%-5s" % sev}
|
14
14
|
|
15
15
|
def format_severity(severity)
|
16
|
-
|
16
|
+
if severity.is_a?(String)
|
17
|
+
"%-5s" % severity
|
18
|
+
else
|
19
|
+
SEV_LABEL[severity] || 'ALIEN'
|
20
|
+
end
|
17
21
|
end
|
18
22
|
|
19
23
|
def format_time(timestamp)
|
data/lib/logjam_agent/version.rb
CHANGED
data/logjam_agent.gemspec
CHANGED
@@ -18,8 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
s.add_development_dependency "rake"
|
22
|
+
s.add_development_dependency "i18n"
|
23
|
+
|
23
24
|
s.add_runtime_dependency "activesupport"
|
24
25
|
s.add_runtime_dependency "time_bandits", [">= 0.1.1"]
|
25
26
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logjam_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stefan Kaes
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-01 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: rake
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
@@ -30,12 +30,40 @@ dependencies:
|
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
version: "0"
|
33
|
-
type: :
|
33
|
+
type: :development
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: i18n
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: activesupport
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
type: :runtime
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: time_bandits
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
39
67
|
none: false
|
40
68
|
requirements:
|
41
69
|
- - ">="
|
@@ -47,7 +75,7 @@ dependencies:
|
|
47
75
|
- 1
|
48
76
|
version: 0.1.1
|
49
77
|
type: :runtime
|
50
|
-
version_requirements: *
|
78
|
+
version_requirements: *id004
|
51
79
|
description: Logjam logger and request information forwarding
|
52
80
|
email:
|
53
81
|
- stefan.kaes@xing.com
|