1 2 3 4 5 6 7 8 9 10 11
# frozen_string_literal: true class OverriddenLoggingJob < ActiveJob::Base def perform(dummy) logger.info "Dummy, here is it: #{dummy}" end def logger @logger ||= ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(nil)) end end