class RoquaLoggingRailtie < Rails::Railtie initializer 'roqua_logging_railtie.configure_roqua_logging' do RoquaLoggingRailtie.configure if ENV['RAILS_LOG_TO_STDOUT_USING_ROQUA_LOGGER'].present? end def self.configure Roqua.logger = ActiveSupport::Logger.new(STDOUT) Roqua.logger.logger.formatter = Logger::Formatter.new require 'roqua/support/request_logger' Roqua::Support::RequestLogger.attach_to :action_controller end end