Sha256: 8bda8551d7f7b30c5b8b64780bf940dc81205a6024ca35e7e8e574d250c8da41
Contents?: true
Size: 522 Bytes
Versions: 13
Compression:
Stored size: 522 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
13 entries across 13 versions & 1 rubygems