Sha256: 403b0cda3cd06b8aca8e0a5ddec96746fadb34b3a3b81e6cb89538f0699fc9ea

Contents?: true

Size: 274 Bytes

Versions: 16

Compression:

Stored size: 274 Bytes

Contents

module Sidetiq
  # Public: Sidetiq logging interface.
  module Logging
    %w(fatal error warn info debug).each do |level|
      level = level.to_sym

      define_method(level) do |msg|
        Sidetiq.logger.__send__(level, "[Sidetiq] #{msg}")
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sidetiq-0.7.2 lib/sidetiq/logging.rb
sidetiq-0.7.1 lib/sidetiq/logging.rb
sidetiq-0.7.0 lib/sidetiq/logging.rb
sidetiq-0.6.3 lib/sidetiq/logging.rb
sidetiq-0.6.2 lib/sidetiq/logging.rb
sidetiq-0.6.1 lib/sidetiq/logging.rb
sidetiq-0.6.0 lib/sidetiq/logging.rb
sidetiq-0.5.0 lib/sidetiq/logging.rb
sidetiq-0.4.3 lib/sidetiq/logging.rb
sidetiq-0.4.2 lib/sidetiq/logging.rb
sidetiq-0.4.1 lib/sidetiq/logging.rb
sidetiq-0.4.0 lib/sidetiq/logging.rb
sidetiq-0.4.0.rc4 lib/sidetiq/logging.rb
sidetiq-0.4.0.rc3 lib/sidetiq/logging.rb
sidetiq-0.4.0.rc2 lib/sidetiq/logging.rb
sidetiq-0.4.0.rc1 lib/sidetiq/logging.rb