lib/chronicle/etl/logger.rb in chronicle-etl-0.4.1 vs lib/chronicle/etl/logger.rb in chronicle-etl-0.4.2

- old
+ new

@@ -11,19 +11,22 @@ SILENT = 5 attr_accessor :log_level @log_level = INFO - @destination = $stderr def output message, level return unless level >= @log_level if @progress_bar @progress_bar.log(message) else - @destination.puts(message) + $stderr.puts(message) end + end + + def fatal(message) + output(message, FATAL) end def error(message) output(message, ERROR) end