# File lib/lograge/formatters/ltsv.rb, line 15 def format(key, value) if key == :error # Exactly preserve the previous output # Parsing this can be ambigious if the error messages contains # a single quote value = "'#{escape value}'" elsif value.is_a? Float value = Kernel.format('%.2f', value) end "#{key}:#{value}" end