___ ___ ___ ___ ___
/ /\ / /\ /__/| / /\ / /\
/ /:/_ / /:/ | |:| / /::\ / /:/_
/ /:/ /\ / /:/ | |:| ___ ___ / /:/\:\ / /:/ /\
/ /:/ /::\ / /:/ ___ __| |:| /__/\ / /\ / /:/ \:\ / /:/_/::\
/__/:/ /:/\:\ /__/:/ / /\ /__/\_|:|____ \ \:\ / /:/ /__/:/ \__\:\ /__/:/__\/\:\
\ \:\/:/~/:/ \ \:\ / /:/ \ \:\/:::::/ \ \:\ /:/ \ \:\ / /:/ \ \:\ /~~/:/
\ \::/ /:/ \ \:\ /:/ \ \::/~~~~ \ \:\/:/ \ \:\ /:/ \ \:\ /:/
\__\/ /:/ \ \:\/:/ \ \:\ \ \::/ \ \:\/:/ \ \:\/:/
/__/:/ \ \::/ \ \:\ \__\/ \ \::/ \ \::/
\__\/ \__\/ \__\/ \__\/ \__\/
Lean remote logger and static file server. Displays logs to web page and writes to file.
Client breakdown:
- POST to
/start
with the appropriate session stamp to start a new log file with that -log.txt - POST to
/log
and watch them print on/watch
web page. They will also show in the text file browsable through static roothttp://localhost:3003/
.
npm install
npm start
path: /
=> shows directory through Ecstatic static file server
path: /watch
=> active session web page
path: /start
body:{"session":<string>}
method:`POST`
path: /log
body:{"payload":<string>}
method:`POST`