123456789_123456789_123456789_123456789_123456789_

Module: AbstractController::Logger

Do not use. This module is for internal use only.

Class Method Summary

::ActiveSupport::Concern - Extended

class_methods

Define class methods from given block.

included

Evaluate given block in context of base class, so that you can write class macros here.

prepended

Evaluate given block in context of base class, so that you can write class macros here.

append_features, prepend_features

Instance Attribute Summary

DSL Calls

included

[ GitHub ]


9
10
11
# File 'actionpack/lib/abstract_controller/logger.rb', line 9

included do
  include ActiveSupport::Benchmarkable
end

Instance Attribute Details

#logger (rw)

[ GitHub ]

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

def logger
  # Reading through the class config when no instance copy exists
  # avoids materializing the per-instance inheritable copy just to
  # look at the logger.
  config = (defined?(@_config) && @_config) || self.class.config
  config[:logger]
end

#logger=(logger) (rw)

[ GitHub ]

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

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