aboutsummaryrefslogblamecommitdiffstats
path: root/activejob/test/jobs/overridden_logging_job.rb
blob: 2ee363637dfb71f8609fba47229078b3b1950989 (plain) (tree)
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