Module: Lumberjack::Rails::ActionCableExtension

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

Overview

Extension for ActionCable::Connection::Base to wrap command processing with Lumberjack context.

This module ensures that all logging within ActionCable command processing is wrapped with the appropriate Lumberjack logger context, maintaining log consistency and enabling tagged logging features.

Instance Method Summary collapse

Instance Method Details

#commandObject

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

Returns:

  • (Object)

    the result of the original command method



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

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