Class: Console::Adapter::Rails::Logger
- Inherits:
-
Compatible::Logger
- Object
- Compatible::Logger
- Console::Adapter::Rails::Logger
- Includes:
- ActiveSupport::LoggerSilence
- Defined in:
- lib/console/adapter/rails/logger.rb
Class Method Summary collapse
Class Method Details
.apply!(configuration: ::Rails.configuration) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/console/adapter/rails/logger.rb', line 28 def self.apply!(configuration: ::Rails.configuration) # Set the logger to a compatible logger to catch `Rails.logger` output: configuration.logger = ActiveSupport::TaggedLogging.new( Logger.new(::Rails) ) # Delete `Rails::Rack::Logger` as it also doubles up on request logs: configuration.middleware.delete ::Rails::Rack::Logger end |