npm install log-server
A simple log server that receive text and dumps it into a file. Every log file will have a daily
representation, meaning that you can easily delete old logs.
Be aware that there's no maximum size on the logs being stored!
Also it provides you a web interface to access the logs directory.
``sh
`
The server expose the following url to submit the logs. You can replace the LOGNAME by some text that will identify
the generated log file. The file will be created on: _'LOGSDIR/DATE/LOGNAME.log'_.
`
POST http://localhost:8000/LOGNAME/log
`
* General remote log submission without the need for a complex log system
* Submit Mobile application logs by username, device, ...
By running the following line you're dumping file.txt into the a log named 'LOGNAME.log'.
`
curl -X POST --data-binary @file.txt http://localhost:8000/LOGNAME/log --header "Content-Type:text/plain"
``
Oscar Brito
+ github/aetheon
+ twitter/aetheon