Take the 2-minute tour ×

Is there an existing web application somewhere or an easy way to build one that re-serves the production log as an RSS feed or simple web page, etc.? (RoR 3.0.5) We'd like other people to be able to glance at the log like the would other content they're used to… Any help is appreciated. Thanks!

share|improve this question

1 Answer 1

First & foremost: Keep in mind the production log file contains sensitive data. Serving it as a web page or rss feed, even when password-protected, is very rarely wise.

With that said, it wouldn't be difficult to do.

  # Security suicide
  def get_production_log
    File.open(File.join(Rails.root, 'log', 'production.log')) do |log|
      content = ''
      while (line = log.gets)
        content << line + "<br />"

To quote the apothecary from romeo & juliet: My poverty of StackOverflow points, but not my will, consents

share|improve this answer

Your Answer


