class Timber::Integrations::Rails::RackLogger
Disables the default rail's rack logging. Note, we cannot simply uninstall this rack middleware because rails couples this with ActiveSupport
instrumentation. As such, we simply disable the logger and let our Rack middleware handle the logging.
@private
Public Class Methods
new()
click to toggle source
# File lib/timber-rails/rack_logger.rb, line 44 def initialize require "rails/rack/logger" rescue LoadError => e raise RequirementNotMetError.new(e.message) end
Public Instance Methods
integrate!()
click to toggle source
# File lib/timber-rails/rack_logger.rb, line 50 def integrate! return true if ::Rails::Rack::Logger.include?(InstanceMethods) ::Rails::Rack::Logger.send(:include, InstanceMethods) end