Module: LogStasher::CustomFields::LogSubscriber

Included in:
ActionView::LogSubscriber, ActiveRecord::LogSubscriber, ActiveSupport::LogSubscriber
Defined in:
lib/logstasher/custom_fields.rb

Instance Method Summary collapse

Instance Method Details

#extract_custom_fields(data) ⇒ Object



6
7
8
# File 'lib/logstasher/custom_fields.rb', line 6

def extract_custom_fields(data)
  (!CustomFields.custom_fields.empty? && data.extract!(*CustomFields.custom_fields)) || {}
end