class IRuby::MultiLogger
Attributes
Public Class Methods
Source
# File lib/iruby/logger.rb, line 9 def initialize(*loggers, level: ::Logger::DEBUG) @loggers = loggers @level = level end
Public Instance Methods
Source
# File lib/iruby/logger.rb, line 18 def level=(new_level) @loggers.each do |l| l.level = new_level end @level = new_level end
Source
# File lib/iruby/logger.rb, line 25 def method_missing(name, *args, &b) @loggers.map {|x| x.respond_to?(name) && x.public_send(name, *args, &b) }.any? end