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



4
5
6
# File 'lib/logstasher/custom_fields.rb', line 4

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