lib/tee_logger/base.rb in tee_logger-2.0.1 vs lib/tee_logger/base.rb in tee_logger-2.0.2

- old
+ new

@@ -10,10 +10,10 @@ @logger = Logger.new(logdev, shift_age, shift_size) @console = Logger.new(STDOUT) end # logging methods. - LOGGING_METHODS.each do |method_name| + LOGGING_METHODS.each do |name| define_method(name) do |progname = nil, &block| @logger.send(name, progname, &block) @console.send(name, progname, &block) end end