Class: CustomLogSpace::BaseSubscriber
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- CustomLogSpace::BaseSubscriber
show all
- Includes:
- LogFormatter, LogWriter
- Defined in:
- lib/custom_log_space/subscribers/base_subscriber.rb
Overview
Instance Method Summary
collapse
Instance Method Details
#process_action(event) ⇒ Object
19
20
21
22
23
|
# File 'lib/custom_log_space/subscribers/base_subscriber.rb', line 19
def process_action(event)
message = format_message(event)
log_message(message)
ThreadManager.clear
end
|
#start_processing(event) ⇒ Object
15
16
17
|
# File 'lib/custom_log_space/subscribers/base_subscriber.rb', line 15
def start_processing(event)
ThreadManager.setup(event.payload)
end
|