Class: Hatchet::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Hatchet::Railtie
- Defined in:
- lib/hatchet/railtie.rb
Overview
Public: Railtie to hook Hatchet into Rails.
Wraps the default Rails.logger, Rails.application.assets.logger, and all log subscribers found in ActiveSupport::LogSubscriber.log_subscribers collection.
Class Method Summary collapse
-
.wrap_rails_logger(app) ⇒ Object
Internal: Class method to encapsulate the replacement of the Rails logger with Hatchet.
Class Method Details
.wrap_rails_logger(app) ⇒ Object
Internal: Class method to encapsulate the replacement of the Rails logger with Hatchet.
36 37 38 39 |
# File 'lib/hatchet/railtie.rb', line 36 def self.wrap_rails_logger(app) initialize_hatchet(app, Rails.logger) replace_rails_loggers(app) end |