Sha256: d3757e7c123922820616e891abdc1124b91f1a7ae404e7e39322a3c8b5e4ecaa

Contents?: true

Size: 1016 Bytes

Versions: 30

Compression:

Stored size: 1016 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

30 entries across 30 versions & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.2.1 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.2.3 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.2.4 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.2.5 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.2.6 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.2.7 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.2.8 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.2.9 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.3.0 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.3.1 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.3.2 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.3.3 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.3.4 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.3.5 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.3.6 tasks/request_log_analyzer.rake
wvanbergen-request-log-analyzer-1.3.7 tasks/request_log_analyzer.rake
request-log-analyzer-1.3.7 tasks/request_log_analyzer.rake
request-log-analyzer-1.3.6 tasks/request_log_analyzer.rake
request-log-analyzer-1.3.5 tasks/request_log_analyzer.rake
request-log-analyzer-1.3.4 tasks/request_log_analyzer.rake