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.
Simply add it to your
And then mount this rails engine on
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
config/initializers, and add the following line in it.
Streamlog.engine_layout = false
Then add the following lines in your application layout
<% yield :title %> <% yield :head %>
This way, streamlog will use your application layout while rendering streamlog view.
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.0