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.
@@ -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[:full_message] = trace.join("\n")
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
@@ -1,5 +1,5 @@
1
1
  module Log4r
2
2
  module Gelf
3
- VERSION = "0.8.3"
3
+ VERSION = "0.8.4"
4
4
  end
5
5
  end
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.3
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-05-17 00:00:00.000000000 Z
12
+ date: 2012-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: log4r