class ActiveSupport::Logger
Public Class Methods
broadcast(*_args)
click to toggle source
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
# File lib/epilog/rails/ext/active_support_logger.rb, line 12 def self.broadcast(*_args) Module.new end