Sha256: f2befd9960c43f0387f73fc085ef1024a454eaf0baa28992843d929c565fdf0c
Contents?: true
Size: 521 Bytes
Versions: 5
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true require 'ougai' require 'getaround_utils/utils/deep_key_value' module GetaroundUtils; end module GetaroundUtils::Ougai; end class GetaroundUtils::Ougai::DeepKeyValueFormatter < Ougai::Formatters::Base def _call(severity, _time, progname, data) message = data.delete(:msg) data[:message] = message if message != 'No message' payload = { severity: severity, progname: progname }.merge(data).compact "#{GetaroundUtils::Utils::DeepKeyValue.serialize(payload)}\n" end end
Version data entries
5 entries across 5 versions & 1 rubygems