Class: Raven::Transports::Stdout

Inherits:
Transport show all
Defined in:
lib/raven/transports/stdout.rb

Instance Attribute Summary collapse

Attributes inherited from Transport

#configuration

Instance Method Summary collapse

Constructor Details

#initializeStdout

Returns a new instance of Stdout.



6
7
8
# File 'lib/raven/transports/stdout.rb', line 6

def initialize(*)
  super
end

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



4
5
6
# File 'lib/raven/transports/stdout.rb', line 4

def events
  @events
end

Instance Method Details

#send_event(_auth_header, data, _options = {}) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/raven/transports/stdout.rb', line 10

def send_event(_auth_header, data, _options = {})
  unless configuration.sending_allowed?
    logger.debug("Event not sent: #{configuration.error_messages}")
  end

  $stdout.puts data
  $stdout.flush
end