Project

wtails

0.0
No commit activity in last 3 years
No release in over 3 years
Webserver acts like 'tails -f'
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Project Readme

wtails

Wtails is a web server acts like 'tails -f', based on webtail( https://github.com/r7kamura/webtail ).

You can watch multiple files with slider UI.

Wtails can serve files without launching browser(--serve), this option is usable for watching remote files.

install

% gem install wtails

usage

% wtails foo.log bar.log baz.log - --serve

then web server started, and you can now browse them at 'http://localhost:9999'.

screenshot

single view

single view

dual (upper/lower) view

dual view

.wtailsrc

Semantics of .wtailsrc is different from webtail. You should modify 'line' local variable.

example:

$ cat ~/.webtailrc
var text = line.text();

if (text == '\n') {
  line.css({
    margin: '3em 0',
    height: 1,
    background: 'lime'
  });
}

if (text.match(/require|opt/)) {
  line.css({
    color: '#E1017B'
  });
}