Sha256: 32e6833a70696ba1ec4026787e520f6ce02728fbd1bd84bb3185ade5d447824b
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true module MrLogaLoga # A structured log message containing the actual message and context # # @private LogMessage = Struct.new(:msg, :context) do # Format the log message. This is a fallback for logger exctending MrLogaLoga who do not know how to format # LogMessage themselves. def inspect # This is identical to ActiveRecord::SimpleFormatter "#{msg.is_a?(String) ? msg : msg.inspect}\n" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mr_loga_loga-0.2.0 | lib/mr_loga_loga/log_message.rb |