Sha256: e02c54d97a00ad2533f6680aa723ce95945ed8ecaafed7b4a76388ab232919d9
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 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::DeepKeyValuesFormatter < 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
getaround_utils-0.2.1 | lib/getaround_utils/ougai/deep_key_value_formatter.rb |