Module: Lumberjack::Rails::ActionMailerExtension
- Defined in:
- lib/lumberjack/rails/action_mailer_extension.rb
Overview
Extension for ActionMailer::Base to wrap mail processing with Lumberjack context.
This module ensures that all logging within mailer processing is wrapped with the appropriate Lumberjack logger context, maintaining log consistency and enabling tagged logging features.
Instance Method Summary collapse
-
#process ⇒ Object
Override the process method to wrap it with Lumberjack logger context.
Instance Method Details
#process ⇒ Object
Override the process method to wrap it with Lumberjack logger context.
14 15 16 |
# File 'lib/lumberjack/rails/action_mailer_extension.rb', line 14 def process(...) Lumberjack::Rails.logger_context(logger) { super } end |