def configure(opts)
      self.verbose = true if opts.verbose

      self.colors = opts.color unless opts.color.nil?

      begin
        opts.warnings.each do |w|
          set_warning(w[:type], w[:enabled], w[:path], w[:params])
        end
      rescue Warning::WarnException => e
        warn(nil, e.message)
      end
    end
def configure(opts)
      self.verbose = true if opts.verbose

      self.colors = opts.color unless opts.color.nil?

      begin
        opts.warnings.each do |w|
          set_warning(w[:type], w[:enabled], w[:path], w[:params])
        end
      rescue Warning::WarnException => e
        warn(nil, e.message)
      end
    end
Configures the logger with command line options.