aboutsummaryrefslogblamecommitdiffstats
path: root/activejob/test/jobs/overridden_logging_job.rb
blob: 2b17a6514210202b28890a43bc95118b8d4e45fe (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                
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