log4r-gelf 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/log4r-gelf/gelf_outputter.rb +4 -2
- data/lib/log4r-gelf/version.rb +1 -1
- metadata +2 -2
@@ -43,7 +43,9 @@ module Log4r
|
|
43
43
|
if logevent.data.respond_to?(:backtrace)
|
44
44
|
trace = logevent.data.backtrace
|
45
45
|
if trace
|
46
|
-
opts[
|
46
|
+
opts["_exception"] = "#{logevent.data.class}"
|
47
|
+
opts[:short_message] = "Caught #{logevent.data.class}: #{logevent.data.message}"
|
48
|
+
opts[:full_message] = "Backtrace:\n" + trace.join("\n")
|
47
49
|
opts[:file] = trace[0].split(":")[0]
|
48
50
|
opts[:line] = trace[0].split(":")[1]
|
49
51
|
end
|
@@ -84,7 +86,7 @@ module Log4r
|
|
84
86
|
end
|
85
87
|
|
86
88
|
synch do
|
87
|
-
opts[:short_message] = format(logevent)
|
89
|
+
opts[:short_message] = format(logevent) unless opts[:short_message]
|
88
90
|
|
89
91
|
@notifier.notify!(opts)
|
90
92
|
end
|
data/lib/log4r-gelf/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log4r-gelf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: log4r
|