module Timber::Overrides::ActiveSupportTaggedLogging::FormatterMethods
@private
Public Class Methods
included(mod)
click to toggle source
# File lib/timber-rails/overrides/active_support_tagged_logging.rb, line 14 def self.included(mod) mod.module_eval do alias_method :_timber_original_push_tags, :push_tags alias_method :_timber_original_pop_tags, :pop_tags def call(severity, timestamp, progname, msg) if is_a?(Timber::Logger::Formatter) # Don't convert the message into a string super(severity, timestamp, progname, msg) else super(severity, timestamp, progname, "#{tags_text}#{msg}") end end end end
Public Instance Methods
call(severity, timestamp, progname, msg)
click to toggle source
Calls superclass method
# File lib/timber-rails/overrides/active_support_tagged_logging.rb, line 19 def call(severity, timestamp, progname, msg) if is_a?(Timber::Logger::Formatter) # Don't convert the message into a string super(severity, timestamp, progname, msg) else super(severity, timestamp, progname, "#{tags_text}#{msg}") end end