0.1.7 • Published 7 years ago

log-s v0.1.7

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

log-s

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.

Requirements

Node >= 7

Installation

Install with npm:

npm install -g log-s

Usage

$ log-s

After that the server starts listening localhost:8085. You can open it in a browser.

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.

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago