Class: Lograge::Formatters::KeyValue

Inherits:
Object
  • Object
show all
Defined in:
lib/lograge/formatters/key_value.rb

Direct Known Subclasses

KeyValueDeep, L2met

Instance Method Summary collapse

Instance Method Details

#call(data) ⇒ Object



6
7
8
9
10
# File 'lib/lograge/formatters/key_value.rb', line 6

def call(data)
  fields_to_display(data)
    .map { |key| format(key, data[key]) }
    .join(' ')
end