class ExceptionDog::LogNotifier

Attributes

configuration[R]
logger[R]

Public Class Methods

clear_log() click to toggle source
# File lib/exception_dog/log_notifier.rb, line 26
def self.clear_log
  @@last_log = nil
end
last_log() click to toggle source
# File lib/exception_dog/log_notifier.rb, line 22
def self.last_log
  @@last_log
end
new(configuration) click to toggle source
# File lib/exception_dog/log_notifier.rb, line 12
def initialize(configuration)
  @configuration = configuration
  @logger = configuration.logger
end

Public Instance Methods

errors() click to toggle source
# File lib/exception_dog/log_notifier.rb, line 30
def errors
  []
end
notify(title, text, opts) click to toggle source
# File lib/exception_dog/log_notifier.rb, line 17
def notify(title, text, opts)
  logger.info "#{title}, #{text}, #{opts}"
  @@last_log = [title, text, opts]
end