flume-logger 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,6 @@ class FlumeLogger::Eventserver
12
12
 
13
13
  @client.append(event)
14
14
  rescue => e
15
- raise
16
15
  warn "#{self.class} - #{e.class} - #{e.message}: #{event}"
17
16
  close
18
17
  @client = nil
@@ -20,7 +19,7 @@ class FlumeLogger::Eventserver
20
19
  end
21
20
 
22
21
  def close
23
- @client && @transport.close
22
+ @client && @transport.close()
24
23
  rescue => e
25
24
  warn "#{self.class} - #{e.class} - #{e.message}"
26
25
  end
@@ -3,13 +3,14 @@ class FlumeLogger < ::Logger
3
3
  attr_reader :client
4
4
 
5
5
  HOST = ::Socket.gethostname
6
- PRIORITY = { "FATAL" => 0,
7
- "CRITICAL" => 0,
6
+ PRIORITY = {
7
+ "FATAL" => 0,
8
8
  "ERROR" => 1,
9
- "WARNING" => 2,
9
+ "WARN" => 2,
10
10
  "INFO" => 3,
11
11
  "DEBUG" => 4,
12
- "TRACE" => 5 }
12
+ "TRACE" => 5
13
+ }
13
14
 
14
15
  def initialize(host, port, flume_type=:ng, headers={})
15
16
  super(::FlumeLogger::Eventserver.new(host, port, flume_type))
@@ -1,5 +1,5 @@
1
1
  require 'logger'
2
2
 
3
3
  class FlumeLogger < ::Logger
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Lars Sj\xC3\xB6str\xC3\xB6m"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2013-11-11 00:00:00 +01:00
17
+ date: 2013-11-13 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency