123456789_123456789_123456789_123456789_123456789_

Module: AbstractController::Logger::ClassMethods

Relationships & Source Files
Defined in: actionpack/lib/abstract_controller/logger.rb

Overview

The logger lives in the controller configuration. It is read from the configuration hash directly rather than through config.logger, which dispatches through OrderedOptions#method_missing and allocates on every call.

Instance Attribute Summary

Instance Attribute Details

#logger (rw)

[ GitHub ]

  
# File 'actionpack/lib/abstract_controller/logger.rb', line 20

def logger
  config[:logger]
end

#logger=(logger) (rw)

[ GitHub ]

  
# File 'actionpack/lib/abstract_controller/logger.rb', line 24

def logger=(logger)
  config[:logger] = logger
end