Class: LogStash::Outputs::Airbrake

Inherits:
Base
  • Object
show all
Defined in:
lib/logstash/outputs/airbrake.rb

Overview

This output lets you send logs to Airbrake.

Instance Method Summary collapse

Instance Method Details

#receive(event) ⇒ Object



44
45
46
47
48
# File 'lib/logstash/outputs/airbrake.rb', line 44

def receive(event)
  return unless output?(event)

  send_notice(build_notice(event))
end

#registerObject



32
33
34
35
36
37
38
39
40
41
# File 'lib/logstash/outputs/airbrake.rb', line 32

def register
  Airbrake.configure do |c|
    c.api_key          = @api_key
    c.environment_name = @environment

    c.host   = @host if @host
    c.port   = @port if @port
    c.secure = @port.to_i == 443
  end
end