lib/europeana/logging/engine.rb in europeana-logging-0.2.4 vs lib/europeana/logging/engine.rb in europeana-logging-0.2.5
- old
+ new
@@ -40,11 +40,11 @@
initializer 'europeana_logging.set_app_loggers' do |app|
app.config.logger = LogStashLogger.new(type: :stdout)
Rails.logger = LogStashLogger.new(type: :stdout)
- ActionController::Base.logger = LogStashLogger.new(type: :stdout)
- ActionController::Base.logger.extend(Europeana::Logging::SessionLogging)
+ ApplicationController.superclass.logger = LogStashLogger.new(type: :stdout)
+ ApplicationController.superclass.logger.extend(Europeana::Logging::SessionLogging)
end
# Controller concern for session ID logging
initializer 'europeana_logging.application_controller_log_session_id' do |_app|
ApplicationController.send :include, Europeana::Logging::LogSessionId