Skip to content

Node.js and socket.io live log viewer. Live log streaming via websockets and fs.watchFile (aka tail -f)

Notifications You must be signed in to change notification settings

mreschke/logs.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logs.js

Watch live log output on the web. This is like tail -f but in a browser using Node.js and Socket.io

Uses basic HTTP authentication, users are stored in config/config.json

Friendly URLs:

  • logs.example.com
  • logs.example.com/view/some/local/folder/
  • logs.example.com/view/some/local/folder/mylog.txt
  • logs.example.com/tail/some/local/folder/mylog.txt

install

git clone into logs.js directory cd logs.js npm install

Edit config/config.json with the proper users and log locations

./logs.js

or if you have forever installed there is a bash script called forever cd logs.js sudo ./forever start sudo ./forever stop sudo ./forever restart ./forever log

The port is configured in config/config.json, simply visit http://localhost:port to see logs.js in action

About

Node.js and socket.io live log viewer. Live log streaming via websockets and fs.watchFile (aka tail -f)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published