https://github.com/megahertz/log-s-desktop
GUI for Node server which collects logs from different clients
https://github.com/megahertz/log-s-desktop
Last synced: about 1 year ago
JSON representation
GUI for Node server which collects logs from different clients
- Host: GitHub
- URL: https://github.com/megahertz/log-s-desktop
- Owner: megahertz
- License: mit
- Created: 2017-03-01T01:01:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T01:35:25.000Z (over 9 years ago)
- Last Synced: 2025-03-16T19:55:25.428Z (about 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://npmjs.org/package/log-s):
npm install -g log-s-desktop
## Usage
```sh
$ log-s-desktop
```
To add logs to the server you can send POST request in the following
format:
```sh
$ curl -H "Content-Type: application/json" -X POST\
-d '{"client":{"name":"Test"},"data":["Test log"]}'\
http://localhost:8085/log
```
or using fetch API:
```js
fetch('http://localhost:8085/log', {
body: JSON.stringify(data),
headers: { 'Content-Type': 'application/json' },
method: 'POST'
});
```
## License
Licensed under MIT.