Module: IuguLogger::JobLogger
- Defined in:
- lib/iugu_logger/job_logger.rb
Overview
Background job middlewares — emit ONE consolidated event per job execution. Same pattern as RequestLogger, applied to Sidekiq and ActiveJob.
Usage (Sidekiq, server side):
Sidekiq.configure_server do |config|
config.server_middleware do |chain|
chain.add IuguLogger::JobLogger::Sidekiq
end
end
Usage (ActiveJob — typically via ApplicationJob):
class ApplicationJob < ActiveJob::Base
include IuguLogger::JobLogger::ActiveJob
end
Spec: IUGU_LOGGING_STANDARD.md §6 (JobLogger middleware)
Defined Under Namespace
Modules: ActiveJob Classes: Adapter, Sidekiq
Constant Summary collapse
- SOURCE_SIDEKIQ =
'sidekiq'- SOURCE_ACTIVEJOB =
'activejob'