Module: Crashdesk
- Defined in:
- lib/crashdesk.rb,
lib/crashdesk/version.rb,
lib/crashdesk/crashlog.rb,
lib/crashdesk/backtrace.rb,
lib/crashdesk/environment.rb,
lib/crashdesk/context_base.rb,
lib/crashdesk/configuration.rb,
lib/crashdesk/report_manager.rb,
lib/crashdesk/reporters/test.rb,
lib/crashdesk/reporters/logger.rb,
lib/crashdesk/reporters/remote.rb,
lib/crashdesk/reporters/screen.rb,
lib/crashdesk/reporters/stderr.rb
Defined Under Namespace
Modules: Reporters Classes: Backtrace, Configuration, ContextBase, Crashlog, Environment, ReportManager
Constant Summary collapse
- LOG_PREFIX =
"[Crashdesk] "
- VERSION =
"0.2.5"
Class Attribute Summary collapse
-
.configuration ⇒ Object
The configuration object.
Class Method Summary collapse
-
.configure(silent = false) {|configuration| ... } ⇒ Object
Call this method to modify defaults for Crashdesk.
-
.crashlog(exception, request, context, options = {}) ⇒ Object
Main method how to build crashlog from exception, context, and environment.
- .log(message, severity = :info) ⇒ Object
Class Attribute Details
.configuration ⇒ Object
The configuration object.
38 39 40 |
# File 'lib/crashdesk.rb', line 38 def configuration @configuration ||= Configuration.new end |
Class Method Details
.configure(silent = false) {|configuration| ... } ⇒ Object
Call this method to modify defaults for Crashdesk.
31 32 33 34 |
# File 'lib/crashdesk.rb', line 31 def configure(silent = false) yield(configuration) if block_given? configuration end |
.crashlog(exception, request, context, options = {}) ⇒ Object
Main method how to build crashlog from exception, context, and environment
48 49 50 |
# File 'lib/crashdesk.rb', line 48 def crashlog(exception, request, context, = {}) Crashlog.new(exception, request, context, ) end |
.log(message, severity = :info) ⇒ Object
42 43 44 |
# File 'lib/crashdesk.rb', line 42 def log(, severity = :info) configuration.logger.send(severity, LOG_PREFIX + ) if configuration.logger end |