module ActiveSupport::TaggedLogging::Formatter

Public Instance Methods

call(severity, time, progname, data) click to toggle source
Calls superclass method
# File lib/berkeley_library/logging/tagged_logging_extensions.rb, line 12
def call(severity, time, progname, data)
  return super unless current_tags.present?

  original_data = BerkeleyLibrary::Logging::Formatters.ensure_hash(data)
  merged_data = { tags: current_tags }.merge(original_data)
  super(severity, time, progname, merged_data)
end