Module: Raygun::Breadcrumbs
- Defined in:
- lib/raygun/breadcrumbs.rb,
lib/raygun/breadcrumbs/store.rb,
lib/raygun/breadcrumbs/breadcrumb.rb
Defined Under Namespace
Classes: Breadcrumb, Store
Constant Summary collapse
- BREADCRUMB_LEVELS =
[ :debug, :info, :warning, :error, :fatal ]
Instance Method Summary collapse
Instance Method Details
#record_breadcrumb(message: nil, category: '', level: :info, timestamp: Time.now.utc.to_i, metadata: {}, class_name: nil, method_name: nil, line_number: nil) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/raygun/breadcrumbs.rb', line 11 def ( message: nil, category: '', level: :info, timestamp: Time.now.utc.to_i, metadata: {}, class_name: nil, method_name: nil, line_number: nil ) class_name = class_name || self.class.name Raygun::Breadcrumbs::Store.record( message: , category: category, level: level, timestamp: , metadata: , class_name: class_name, method_name: method_name, line_number: line_number, ) end |