lib/innate/log.rb in manveru-innate-2009.02.25 vs lib/innate/log.rb in manveru-innate-2009.03.24

- old
+ new

@@ -1,15 +1,12 @@ require 'innate/log/hub' require 'innate/log/color_formatter' module Innate - logdev, *params = options.log.params - color = options.log.color - color = Logger::ColorFormatter.color?(logdev) if color.nil? + logdev = $stderr + logger = Logger.new(logdev) - logger = Logger.new(logdev, *params) - - if color + if Logger::ColorFormatter.color?(logdev) begin require 'win32console' if RUBY_PLATFORM =~ /win32/i logger.formatter = Logger::ColorFormatter.new