Sha256: bf85fae5ede5c53d053e098c4fb5723e9b6ae262470e8515555413c792765620

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

# Print errors that occured often
puts
puts "Errors"
puts green("========================================================================")
@summarizer.sort_errors_by(:count).reverse[0, @amount].each do |a|
  puts "%s: [#{green("%d requests")}]" % [a[0] + 'Error', a[1][:count]]
  puts blue(' -> ' + (a[1][:exception_strings].invert[ a[1][:exception_strings].values.max ])[0..79])
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wvanbergen-request-log-analyzer-0.3.0 output/errors.rb
wvanbergen-request-log-analyzer-0.3.2 output/errors.rb
wvanbergen-request-log-analyzer-0.3.3 output/errors.rb
wvanbergen-request-log-analyzer-0.3.4 output/errors.rb