Sha256: 747969f11ec6cf97f5048dfd274d40d46b47c658d23af31064f568f1e98cebc5
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
require 'lograge_activejob/version' require 'lograge_activejob/log_subscriber' module LogrageActivejob module_function mattr_writer :custom_options self.custom_options = nil mattr_accessor :logger def custom_options(event) if @@custom_options.respond_to?(:call) @@custom_options.call(event) else @@custom_options end end def setup(app) LogrageActivejob.logger = app.config.lograge_activejob.logger LogrageActivejob.custom_options = app.config.lograge_activejob.custom_options LogrageActivejob::LogSubscriber.attach_to :active_job end end require 'lograge_activejob/railtie' if defined?(Rails)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lograge_activejob-0.3.2 | lib/lograge_activejob.rb |
lograge_activejob-0.3.1 | lib/lograge_activejob.rb |