Sha256: cfa48ebf90b0302cfafc26f8d51b6fcf946d0785bdb8c27902f226b5620ba8b4
Contents?: true
Size: 745 Bytes
Versions: 4
Compression:
Stored size: 745 Bytes
Contents
module Loga module Sidekiq def self.configure_logging return unless defined?(::Sidekiq) return if Gem::Version.new(::Sidekiq::VERSION) < Gem::Version.new('5.0') if Gem::Version.new(::Sidekiq::VERSION) < Gem::Version.new('6.0') require 'loga/sidekiq5/job_logger' ::Sidekiq.configure_server do |config| config.options[:job_logger] = Loga::Sidekiq5::JobLogger end elsif Gem::Version.new(::Sidekiq::VERSION) < Gem::Version.new('7.0') require 'loga/sidekiq6/job_logger' ::Sidekiq.configure_server do |config| config.options[:job_logger] = Loga::Sidekiq6::JobLogger end end ::Sidekiq.logger = Loga.configuration.logger end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
loga-2.6.1 | lib/loga/sidekiq.rb |
loga-2.6.0 | lib/loga/sidekiq.rb |
loga-2.5.4 | lib/loga/sidekiq.rb |
loga-2.5.3 | lib/loga/sidekiq.rb |