Sha256: 7836aa37a7f4c6197782fd78b526223b0231ac86e0edb0295d075144b773615d

Contents?: true

Size: 298 Bytes

Versions: 5

Compression:

Stored size: 298 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sidekiq-grouping-1.0.4 lib/sidekiq/grouping/logging.rb
sidekiq-grouping-1.0.3 lib/sidekiq/grouping/logging.rb
sidekiq-grouping-1.0.2 lib/sidekiq/grouping/logging.rb
sidekiq-grouping-1.0.1 lib/sidekiq/grouping/logging.rb
sidekiq-grouping-0.0.6 lib/sidekiq/grouping/logging.rb