aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/jobs/overridden_logging_job.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/jobs/overridden_logging_job.rb')
-rw-r--r--activejob/test/jobs/overridden_logging_job.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/activejob/test/jobs/overridden_logging_job.rb b/activejob/test/jobs/overridden_logging_job.rb
new file mode 100644
index 0000000000..2ee363637d
--- /dev/null
+++ b/activejob/test/jobs/overridden_logging_job.rb
@@ -0,0 +1,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