def handle_progress(message, value = nil)
      case message
      when :started
        @progress_bar = CommandLine::ProgressBar.new(File.basename(value), File.size(value), STDERR)
      when :finished
        @progress_bar.finish
        @progress_bar = nil
      when :interrupted
        if @progress_bar
          @progress_bar.halt
          @progress_bar = nil
        end
      when :progress
        @progress_bar.set(value)
      end
    end
def handle_progress(message, value = nil)
      case message
      when :started
        @progress_bar = CommandLine::ProgressBar.new(File.basename(value), File.size(value), STDERR)
      when :finished
        @progress_bar.finish
        @progress_bar = nil
      when :interrupted
        if @progress_bar
          @progress_bar.halt
          @progress_bar = nil
        end
      when :progress
        @progress_bar.set(value)
      end
    end
Builds a new Controller for the given log file format.
 <tt>format</tt> Logfile format. Defaults to :rails
 Options are passd on to the LogParser.
 * <tt>:database</tt> Database the controller should use.
 * <tt>:yaml</tt> Yaml Dump the contrller should use.
 * <tt>:output</tt> All report outputs get << through this output.
 * <tt>:no_progress</tt> No progress bar
 * <tt>:silent</tt> Minimal output, only error
 Progress function.
 Expects :started with file, :progress with current line and :finished or :interrupted when done.
 <tt>message</tt> Current state (:started, :finished, :interupted or :progress).
 <tt>value</tt> File or current line.