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

Instance Method Details

#processObject

Override the process method to wrap it with Lumberjack logger context.

Returns:

  • (Object)

    the result of the original process method



14
15
16
# File 'lib/lumberjack/rails/action_mailer_extension.rb', line 14

def process(...)
  Lumberjack::Rails.logger_context(logger) { super }
end