Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
initialize_framework_logging()
public
Sets the logger for Active Record,
Action Controller, and Action Mailer (but only for those
frameworks that are to be loaded). If the framework’s logger is
already set, it is not changed, otherwise it is set to use
RAILS_DEFAULT_LOGGER.
Show source
def initialize_framework_logging
for framework in ([ :active_record, :action_controller, :action_mailer ] & configuration.frameworks)
framework.to_s.camelize.constantize.const_get("Base").logger ||= Rails.logger
end
ActiveSupport::Dependencies.logger ||= Rails.logger
Rails.cache.logger ||= Rails.logger
end