module Jangle # Wraps other Logger instances, sending each one the same # messages, e.g. can be used to log to console and a file # at the same time. class AppLogger def initialize(loggers) @loggers = loggers end def method_missing(method, *args) @loggers.each do |l| l.send(method, *args) end end end end