Sha256: 8e34f4f7a474227d3f9b714a5eda2bc43890d74be1fcc010966b5b443d590aba

Contents?: true

Size: 232 Bytes

Versions: 17

Compression:

Stored size: 232 Bytes

Contents

module RailsSemanticLogger
  module DelayedJob
    class Plugin < Delayed::Plugin
      callbacks do |lifecycle|
        lifecycle.before(:execute) do |_job|
          ::SemanticLogger.reopen
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails_semantic_logger-4.17.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.16.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.15.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.14.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.13.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.12.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.11.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.10.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.9.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.6.2 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.6.1 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.6.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.5.1 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.5.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.4.6 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.4.5 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.4.4 lib/rails_semantic_logger/delayed_job/plugin.rb