class Moon::Logfmt::KeyValueFormatter
Logfmt's actual formatter, this takes a key and a value and produces a string
Public Class Methods
default()
click to toggle source
Returns the default instance of the key value formatter
@return [KeyValueFormatter]
# File lib/moon-logfmt/formatter.rb, line 34 def self.default @default ||= new end
Public Instance Methods
call(key, value)
click to toggle source
Default KEY=VALUE formatter
@param [String] key @param [String] value @return [String]
# File lib/moon-logfmt/formatter.rb, line 27 def call(key, value) "#{key}=#{value}" end