Class: NextStation::Logging::Subscribers::Custom Private
- Defined in:
- lib/next_station/logging/subscribers/custom.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Subscriber for custom log events manually triggered.
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
- #on_custom(event) ⇒ Object private
- #subscribe(monitor) ⇒ Object private
Methods inherited from Base
Instance Method Details
#on_custom(event) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 20 21 |
# File 'lib/next_station/logging/subscribers/custom.rb', line 17 def on_custom(event) log_event(event, extra_data: { event_kind: 'log.custom' }) end |
#subscribe(monitor) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/next_station/logging/subscribers/custom.rb', line 12 def subscribe(monitor) monitor.subscribe('log.custom') { |event| on_custom(event) } end |