Sha256: f1eb311b97cb9fb596d10a22cc8b6e76638a93b24f771ffde16ee24aec9a2781

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

require 'sidekiq/logging/shared'

module Sidekiq
  # Class used to replace Sidekiq 5 job logger.
  class LogstashJobLogger
    include Sidekiq::Logging::Shared

    def call(job, _queue, &block)
      log_job(job, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-logstash-1.2.1 lib/sidekiq/logstash_job_logger.rb
sidekiq-logstash-1.2.0 lib/sidekiq/logstash_job_logger.rb