lib/innate/log/hub.rb in innate-2009.05 vs lib/innate/log/hub.rb in innate-2009.06
- old
+ new
@@ -61,13 +61,17 @@
def method_missing(meth, *args, &block)
eval %~
def #{meth}(*args, &block)
return unless @active
- @loggers.each{|l| l.#{meth}(*args, &block) }
+ args.each{|arg| @loggers.each{|logger| logger.#{meth}(arg, &block) }}
end
~
send(meth, *args, &block)
+ end
+
+ def write(*args)
+ self.<<(*args)
end
end
end