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

Version Path
request-log-analyzer-1.8.0 tasks/request_log_analyzer.rake
request-log-analyzer-1.7.0 tasks/request_log_analyzer.rake
request-log-analyzer-1.6.4 tasks/request_log_analyzer.rake
request-log-analyzer-1.6.3 tasks/request_log_analyzer.rake
request-log-analyzer-1.6.2 tasks/request_log_analyzer.rake
request-log-analyzer-1.6.1 tasks/request_log_analyzer.rake
request-log-analyzer-1.6.0 tasks/request_log_analyzer.rake
request-log-analyzer-1.5.4 tasks/request_log_analyzer.rake
request-log-analyzer-1.5.3 tasks/request_log_analyzer.rake
request-log-analyzer-1.5.2 tasks/request_log_analyzer.rake
request-log-analyzer-1.5.1 tasks/request_log_analyzer.rake
request-log-analyzer-1.5.0 tasks/request_log_analyzer.rake
request-log-analyzer-1.4.2 tasks/request_log_analyzer.rake
ngmoco-request-log-analyzer-1.4.2 tasks/request_log_analyzer.rake
request-log-analyzer-1.4.1 tasks/request_log_analyzer.rake
request-log-analyzer-1.4.0.1 tasks/request_log_analyzer.rake
request-log-analyzer-1.4.0 tasks/request_log_analyzer.rake