module LogrageActivejob

Constants

Config
VERSION

Public Instance Methods

custom_options(event) click to toggle source
# File lib/lograge_activejob.rb, line 12
def custom_options(event)
  if @@custom_options.respond_to?(:call)
    @@custom_options.call(event)
  else
    @@custom_options
  end
end
setup(app) click to toggle source
# File lib/lograge_activejob.rb, line 20
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