Sha256: 7ba33eec7348023d32fe7731e650170c945710821a2158d1d69fcb1ed026c9f0
Contents?: true
Size: 428 Bytes
Versions: 10
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true namespace :rails_log_parser do desc 'notify about found problems in production.log' task :parse, [:from_minutes, :heuristic] do |_t, args| parser = RailsLogParser::Parser.from_file(RailsLogParser::Parser.log_path) parser.enable_heuristic(File.dirname(RailsLogParser::Parser.log_path)) if args[:heuristic] == 'true' print parser.summary(last_minutes: args[:from_minutes]) end end
Version data entries
10 entries across 10 versions & 1 rubygems