Class: ActiveSupport::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/logjam_agent/buffered_logger.rb

Direct Known Subclasses

LogjamAgent::BufferedLogger

Class Method Summary collapse

Class Method Details

.broadcast(logger) ⇒ Object



21
22
23
24
25
# File 'lib/logjam_agent/buffered_logger.rb', line 21

def broadcast(logger)
  logger.formatter = LogjamAgent::ConsoleFormatter.new
  logger.formatter.extend(ActiveSupport::TaggedLogging::Formatter)
  original_broadcast(logger)
end

.original_broadcastObject



20
# File 'lib/logjam_agent/buffered_logger.rb', line 20

alias_method :original_broadcast, :broadcast