Sha256: 6eeeeba86b4608d12c46f02324cb8e938e24fd0e265dd0d5ebf0f55bd1be4d3a

Contents?: true

Size: 297 Bytes

Versions: 5

Compression:

Stored size: 297 Bytes

Contents

module Sidekiq
  module Batching
    module Logging
      %w(fatal error warn info debug).each do |level|
        level = level.to_sym

        define_method(level) do |msg|
          Sidekiq::Batching.logger.public_send(level, "[Sidekiq::Batching] #{msg}")
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sidekiq-batching-0.0.5 lib/sidekiq/batching/logging.rb
sidekiq-batching-0.0.4 lib/sidekiq/batching/logging.rb
sidekiq-batching-0.0.3 lib/sidekiq/batching/logging.rb
sidekiq-batching-0.0.2 lib/sidekiq/batching/logging.rb
sidekiq-batching-0.0.1 lib/sidekiq/batching/logging.rb