Sha256: ddafc38b9ecbc776eef0102cc341b9cc514ce4139f279e90a941a48f117e6583
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
require 'yell' module RabbitWQ module WorkLogging %w( debug error fatal info warn ).each do |level| define_method "worker_#{level}" do |worker, *messages| return unless RabbitWQ.work_logger messages.each do |message| RabbitWQ.work_logger.send level, worker, message end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rabbit-wq-2.3.0 | lib/rabbit_wq/work_logging.rb |
rabbit-wq-2.2.0 | lib/rabbit_wq/work_logging.rb |