Module: Raven::Breadcrumbs::ActiveSupportLogger
- Defined in:
- lib/raven/breadcrumbs/active_support_logger.rb
Class Method Summary collapse
Class Method Details
.add(name, started, _finished, _unique_id, data) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/raven/breadcrumbs/active_support_logger.rb', line 5 def add(name, started, _finished, _unique_id, data) Raven..record do |crumb| crumb.data = data crumb.category = name crumb. = started.to_i end end |
.detach ⇒ Object
19 20 21 |
# File 'lib/raven/breadcrumbs/active_support_logger.rb', line 19 def detach ::ActiveSupport::Notifications.unsubscribe(@subscriber) end |
.inject ⇒ Object
13 14 15 16 17 |
# File 'lib/raven/breadcrumbs/active_support_logger.rb', line 13 def inject @subscriber = ::ActiveSupport::Notifications.subscribe(/.*/) do |name, started, finished, unique_id, data| add(name, started, finished, unique_id, data) end end |