bin/request-log-analyzer in wvanbergen-request-log-analyzer-1.2.0 vs bin/request-log-analyzer in wvanbergen-request-log-analyzer-1.2.1
- old
+ new
@@ -15,17 +15,18 @@
command_line.command(:strip) do |strip|
strip.minimum_parameters = 1
strip.option(:format, :alias => :f, :default => 'rails')
strip.option(:output, :alias => :o)
strip.switch(:discard_teaser_lines, :t)
- strip.switch(:keep_junk_lines, :j)
+ strip.switch(:keep_junk_lines, :j)
end
command_line.option(:format, :alias => :f, :default => 'rails')
command_line.option(:file, :alias => :e)
command_line.option(:parse_strategy, :default => 'assume-correct')
-
+ command_line.option(:dump)
+
command_line.option(:aggregator, :alias => :a, :multiple => true)
command_line.option(:database, :alias => :d)
# filtering options
command_line.option(:select, :multiple => true, :parameters => 2)
@@ -42,10 +43,12 @@
command_line.minimum_parameters = 1
end
rescue CommandLine::Error => e
puts "Request-log-analyzer, by Willem van Bergen and Bart ten Brinke - version #{RequestLogAnalyzer::VERSION}"
+ puts "Website: http://railsdoctors.com"
+ puts
puts "ARGUMENT ERROR: " + e.message if e.message
puts
puts "Usage: request-log-analyzer [LOGFILES*] <OPTIONS>"
puts
puts "Input options:"
@@ -59,10 +62,11 @@
puts " --boring, -b Output reports without ASCII colors."
puts " --database <filename>, -d: Creates an SQLite3 database of all the parsed request information."
puts " --debug Print debug information while parsing."
puts " --file <filename> Output to file."
puts " --output <format> Output format. Supports 'HTML' and 'FixedWidth' (default)"
+ puts " --dump <filename> Dump the YAML formatted results in the given file"
puts
puts "Examples:"
puts " request-log-analyzer development.log"
puts " request-log-analyzer -b mongrel.0.log mongrel.1.log mongrel.2.log "
puts " request-log-analyzer --format merb -d requests.db production.log"
@@ -80,10 +84,10 @@
when :strip
require File.dirname(__FILE__) + '/../lib/request_log_analyzer/log_processor'
RequestLogAnalyzer::LogProcessor.build(:strip, arguments).run!
else
puts "Request-log-analyzer, by Willem van Bergen and Bart ten Brinke - version #{RequestLogAnalyzer::VERSION}"
- puts "Website: http://github.com/wvanbergen/request-log-analyzer"
+ puts "Website: http://railsdoctors.com"
puts
# Run the request_log_analyzer!
RequestLogAnalyzer::Controller.build(arguments).run!
end