Module: BetterController::Logging::ClassMethods

Defined in:
lib/better_controller/logging.rb

Overview

Module providing class methods for logging

Instance Method Summary collapse

Instance Method Details

#loggerLogger

Get the logger for the controller

Returns:

  • (Logger)

    The logger



96
97
98
# File 'lib/better_controller/logging.rb', line 96

def logger
  better_controller_logger
end

#logger=(logger) ⇒ Object

Set the logger for the controller

Parameters:

  • logger (Logger)

    The logger to use



90
91
92
# File 'lib/better_controller/logging.rb', line 90

def logger=(logger)
  self.better_controller_logger = logger
end