Sha256: 42f234dfce4a84f4d602584bc28e29501332f8b34673d0a15e9d1b1b46a94559
Contents?: true
Size: 1008 Bytes
Versions: 17
Compression:
Stored size: 1008 Bytes
Contents
namespace :rla do desc "Analyze the Rails log file using the request-log-analyzer gem." task :report => :environment do puts "Analyzing the Rails log file using the request-log-analyzer gem." puts " Environment: #{RAILS_ENV}" puts " Logfile: #{Rails.configuration.log_path}" puts "" IO.popen("request-log-analyzer #{Rails.configuration.log_path}") { |io| $stdout << io.read } end namespace :report do desc "Analyze the Rails log file using the request-log-analyzer gem and output an HTML file." task :html => :environment do output_file = Rails.configuration.log_path + ".html" puts "Analyzing the Rails log file using the request-log-analyzer gem." puts " Environment: #{RAILS_ENV}" puts " Logfile: #{Rails.configuration.log_path}" puts " Output: #{output_file}" puts "" IO.popen("request-log-analyzer #{Rails.configuration.log_path} --output HTML --file #{output_file}") { |io| $stdout << io.read } end end end
Version data entries
17 entries across 17 versions & 2 rubygems