Module: Lumberjack::Rails::ActionControllerExtension

Defined in:
lib/lumberjack/rails/action_controller_extension.rb

Overview

Extension for ActionController::Base to wrap request processing with Lumberjack context.

This module ensures that all logging within a controller action 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.



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

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