Project

streamlog

0.0
No commit activity in last 3 years
No release in over 3 years
Streamlog is an alternative to browserlog. The difference between these two engines is that browserlog uses polling to fetch the logs while streamlog uses streaming.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0.12, ~> 1.0
>= 3.0.4, ~> 3.0
~> 4.0
 Project Readme

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 lines in your application layout head tag

<% yield :title %>
<% yield :head %>

This way, streamlog will use your application layout while rendering 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.0