class HotController < ApplicationController def index session[:toto1] = session[:toto1].nil? ? "id##{Random.rand(10)}" : nil logger.info('callee') logger.info(__callee__) logger.info(__method__) # logger.info(ActiveSupport::LogSubscriber.subscribers.map(&:patterns)) # logger.info(ActiveSupport::Notifications.notifier.listeners_for('.*\.action_controller')) end end