Class: Crashdesk::Reporters::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/crashdesk/reporters/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(params = nil) ⇒ Logger

Returns a new instance of Logger.



5
6
# File 'lib/crashdesk/reporters/logger.rb', line 5

def initialize(params = nil)
end

Instance Method Details

#run(crashlog) ⇒ Object



8
9
10
11
# File 'lib/crashdesk/reporters/logger.rb', line 8

def run(crashlog)
  hash = crashlog.to_hash
  Crashdesk.log(hash.to_s)
end