Module: Lograge::Formatters::Helpers::MethodAndPath

Included in:
Graylog2, Logstash
Defined in:
lib/lograge/formatters/helpers/method_and_path.rb

Instance Method Summary collapse

Instance Method Details

#method_and_path_string(data) ⇒ Object



7
8
9
10
# File 'lib/lograge/formatters/helpers/method_and_path.rb', line 7

def method_and_path_string(data)
  method_and_path = [data[:method], data[:path]].compact
  method_and_path.any?(&:present?) ? " #{method_and_path.join(' ')} " : ' '
end