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



5
6
7
8
# File 'lib/lograge/formatters/helpers/method_and_path.rb', line 5

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