Streamlog

Streamlog is a Rails Mountable Engine. It streams rails application log to the browser. It is an alternative to Browserlog. Browserlog is based on polling while streamlog streams the log.

Installation

Simply add it to your Gemfile

gem 'streamlog'

And then mount this rails engine on config/routes.rb

Rails.application.routes.draw do  
  mount Streamlog::Engine => '/streamlog'  
end

This will make the log available at domain/streamlog. Make sure to authenticate this route.

Using your app layout

Create streamlog.rb in config/initializers, and add the following line in it.

Streamlog.engine_layout = false

Then add the following line in your layout head tag

<% yield :head %>

This will use your application layout to load streamlog view.

Note

You will need to install passenger with nginx/apache on your local machine to achieve concurrency and be able to test streamlog. GoRails is a guide to setup Passenger with nginx.

Supported Rails Version

  • Rails >= 4.1