Class: ActiveGenie::Logger
- Inherits:
-
Object
- Object
- ActiveGenie::Logger
- Defined in:
- lib/active_genie/logger.rb
Instance Method Summary collapse
Instance Method Details
#call(data, config:) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/active_genie/logger.rb', line 8 def call(data, config:) log = data.merge(config.log.additional_context || {}) .merge( timestamp: Time.now, process_id: Process.pid ) persist!(log, config:) output_call(log, config:) call_observers(log, config:) log end |