Sha256: 85a9ba695ec3578045c6f42c13ad746eab9a815065d894df6e8dc7dda2e72303
Contents?: true
Size: 510 Bytes
Versions: 3
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true module OnStrum module Logs module Formatter class Base DATETIME_FORMAT = '%FT%T.%3N%:z' LOG_ATTRIBUTES_ORDER = %i[level time message context service_name service_version].freeze def self.arrange_attrs(**log_data) OnStrum::Logs::Formatter::Base::LOG_ATTRIBUTES_ORDER.each_with_object({}) do |attribute, arranged_attrs| arranged_attrs[attribute] = log_data[attribute] end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
on_strum-logs-0.2.0 | lib/on_strum/logs/formatter/base.rb |
on_strum-logs-0.1.1 | lib/on_strum/logs/formatter/base.rb |
on_strum-logs-0.1.0 | lib/on_strum/logs/formatter/base.rb |