realtime-logger
v1.0.3
Published
A command-line tool for viewing logfile changes in realtime using browser tab.
Downloads
6
Readme
log-streaming
View real-time file logs on web interface using SSE.
Usage as command line tool
- Install using
npm install realtime-logger -g
- Run
rt_log
from terminal - Access the UI at
localhost:3000
How to run the project
- Install node version manager (nvm)
- Then Run following commands:
nvm install
nvm use
npm install
npm start
Configurations
- Create a json file for configuration in following format:
[
// Full file path strings separated by comma
// Ex:
// "/Users/abcd/sample/access.log",
// "/Users/abcd/sample/README.md"
]
- Export the full path of the above file under
LOGVIEWER_PATH
variable. - To monitor the file changes, add their paths in configuration file created earlier.
- Open up the browser at
http://localhost:3000
to check the UI. - To change the port export
LOGVIEWER_PORT
env with proper port number.