class ExceptionDog::Configuration

Attributes

agent_host[RW]
agent_port[RW]
alert_type[RW]
api_key[RW]
app_name[RW]
environment[RW]
ignore_exceptions[RW]
logger[RW]
notifier[RW]
notifier_instance[RW]
service_name[RW]
source_type_name[RW]
tags[RW]
test_mode[RW]

Public Class Methods

new() click to toggle source
# File lib/exception_dog.rb, line 26
def initialize
  self.source_type_name = 'my_apps'
  self.alert_type = 'error'
  self.environment = 'prod'
  self.test_mode = false
  self.agent_host = 'localhost'
  self.agent_port = 8125
  self.tags = []
  self.logger = Logger.new(STDOUT)
  self.ignore_exceptions = []
end

Public Instance Methods

errors() click to toggle source
# File lib/exception_dog.rb, line 38
def errors
  @errors = []
  @errors << "No service_name supplied" unless service_name
  @errors << "No notifier configured" unless notifier
  @errors
end
valid?() click to toggle source
# File lib/exception_dog.rb, line 45
def valid?
  errors.empty?
end