Sha256: 5d638a3c342842ef8d4dbdeda35bf0458bc8cdf036984bdd3a905283ebec9575

Contents?: true

Size: 329 Bytes

Versions: 8

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

require 'sidekiq/job_logger'
require 'sidekiq/logging/shared'

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sidekiq-logstash-3.2.1 lib/sidekiq/logstash_job_logger.rb
sidekiq-logstash-3.2.0 lib/sidekiq/logstash_job_logger.rb
sidekiq-logstash-3.1.0 lib/sidekiq/logstash_job_logger.rb
sidekiq-logstash-3.0.0 lib/sidekiq/logstash_job_logger.rb
sidekiq-logstash-2.0.3 lib/sidekiq/logstash_job_logger.rb
sidekiq-logstash-2.0.2 lib/sidekiq/logstash_job_logger.rb
sidekiq-logstash-2.0.1 lib/sidekiq/logstash_job_logger.rb
sidekiq-logstash-2.0.0 lib/sidekiq/logstash_job_logger.rb