0.1.13 • Published 7 years ago
log-s-desktop v0.1.13
log-s-desktop
This package is still in active development
Sometimes you can't use a debugger. In this case it's possible to write some data to log, but log file becomes too hard for reading. This server collects a such logs and displays it similar to Chrome Dev Tools.
It's a Desktop version of log-s server.
Requirements
Node >= 7
Installation
Install with npm:
npm install -g log-s-desktop
Usage
$ log-s-desktop
To add logs to the server you can send POST request in the following format:
$ curl -H "Content-Type: application/json" -X POST\
-d '{"client":{"name":"Test"},"data":["Test log"]}'\
http://localhost:8085/log
or using fetch API:
fetch('http://localhost:8085/log', {
body: JSON.stringify(data),
headers: { 'Content-Type': 'application/json' },
method: 'POST'
});
License
Licensed under MIT.