Class: CmLogger::LogrageFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/lograge_formatter.rb

Instance Method Summary collapse

Instance Method Details

#call(data) ⇒ Object



3
4
5
6
7
# File 'lib/lograge_formatter.rb', line 3

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