Module: ExceptionDog
- Defined in:
- lib/exception_dog.rb,
lib/exception_dog/handler.rb,
lib/exception_dog/version.rb,
lib/exception_dog/log_notifier.rb,
lib/exception_dog/http_notifier.rb,
lib/exception_dog/agent_notifier.rb
Defined Under Namespace
Modules: Integrations
Classes: AgentNotifier, Configuration, Handler, HttpNotifier, LogNotifier
Constant Summary
collapse
- VERSION =
"0.3.2"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
50
51
52
|
# File 'lib/exception_dog.rb', line 50
def configuration
@configuration
end
|
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/exception_dog.rb', line 54
def configure
@configuration = Configuration.new
yield @configuration
@configuration.logger ||= Logger.new(STDOUT)
if !configuration.valid?
@configuration.logger.error "Invalid ExceptionDog config #{configuration.errors.inspect}"
@configuration.notifier = "LogNotifier"
end
@handler = Handler.new(configuration)
@configuration
end
|
.default_hostname ⇒ Object
70
71
72
|
# File 'lib/exception_dog.rb', line 70
def default_hostname
Socket.gethostname;
end
|
.notify(exception, data = {}) ⇒ Object
66
67
68
|
# File 'lib/exception_dog.rb', line 66
def notify(exception, data = {})
@handler.notify(exception, data)
end
|