Sha256: fcb0716d9db720444294697a563aae6f804aa059cd74eace34d6dcd4ea9c6124
Contents?: true
Size: 383 Bytes
Versions: 2
Compression:
Stored size: 383 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.1.0 | lib/rabbit_wq/work_logging.rb |
rabbit-wq-2.0.0 | lib/rabbit_wq/work_logging.rb |