https://github.com/barzik/simple-log-viewer
Node.js module for viewing log items in the browser
https://github.com/barzik/simple-log-viewer
Last synced: 9 months ago
JSON representation
Node.js module for viewing log items in the browser
- Host: GitHub
- URL: https://github.com/barzik/simple-log-viewer
- Owner: barzik
- Created: 2014-10-09T16:45:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-10T14:34:41.000Z (over 11 years ago)
- Last Synced: 2025-09-04T17:33:55.387Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Log Viewer
Node.js module intended for watching simple log file and view this file on user's browser.
Without any configurations, settings and install. just name the log file place and that's it! the user is being able to view the log file by going to the IP:3000 (You can change the port). the user will view the last 10 entries and every new entry will appear immediatly in the browser.
## How to use
var myLog = require('simple-log-viewer');
myLog.init('logfile.log'); //init module with log file name
myLog.createServer(); //You can specify port number here
myLog.addToLog('Some Log Item');
myLog.addToLog('Some Log Item2');
myLog.addToLog('Some Log Item3');
## How to test
Testing as being made with Mocha. just "make test" from root directory and that's it!