Sha256: 86e73927b0b6d135fc3673a94effc02cd5c3f135cceb65279f07028a2161a054

Contents?: true

Size: 740 Bytes

Versions: 6

Compression:

Stored size: 740 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  module Logging
    # :reek:UtilityFunction { enabled: false }
    def logger
      SidekiqUniqueJobs.logger
    end

    def log_debug(message_or_exception = nil, &block)
      logger.debug(message_or_exception, &block)
    end

    def log_info(message_or_exception = nil, &block)
      logger.info(message_or_exception, &block)
    end

    def log_warn(message_or_exception = nil, &block)
      logger.warn(message_or_exception, &block)
    end

    def log_error(message_or_exception = nil, &block)
      logger.error(message_or_exception, &block)
    end

    def log_fatal(message_or_exception = nil, &block)
      logger.fatal(message_or_exception, &block)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.0.rc6 lib/sidekiq_unique_jobs/logging.rb
sidekiq-unique-jobs-6.0.0.rc5 lib/sidekiq_unique_jobs/logging.rb
sidekiq-unique-jobs-6.0.0.rc4 lib/sidekiq_unique_jobs/logging.rb
sidekiq-unique-jobs-6.0.0.rc3 lib/sidekiq_unique_jobs/logging.rb
sidekiq-unique-jobs-6.0.0.rc2 lib/sidekiq_unique_jobs/logging.rb
sidekiq-unique-jobs-6.0.0.rc1 lib/sidekiq_unique_jobs/logging.rb