Class: ActiveSupport::Logger
- Inherits:
-
Object
- Object
- ActiveSupport::Logger
- Defined in:
- lib/epilog/rails/ext/active_support_logger.rb
Class Method Summary collapse
-
.broadcast(*_args) ⇒ Object
Rails uses this method to attach additional loggers to the main Rails.logger object when using the rails console or server.
Class Method Details
.broadcast(*_args) ⇒ Object
Rails uses this method to attach additional loggers to the main Rails.logger object when using the rails console or server. This results in extra unformatted log output in those cases. Prevent that by overriding the method with a stub. Examples can be found in
- railties/lib/rails/commands/server.rb
- active_record/lib/active_record/railtie.rb
12 13 14 |
# File 'lib/epilog/rails/ext/active_support_logger.rb', line 12 def self.broadcast(*_args) Module.new end |