Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/littledumb/micro-logzio
A middleware for micro framework that logs requests and responses using logz.io service.
https://github.com/littledumb/micro-logzio
Last synced: 2 months ago
JSON representation
A middleware for micro framework that logs requests and responses using logz.io service.
- Host: GitHub
- URL: https://github.com/littledumb/micro-logzio
- Owner: littledumb
- License: mit
- Created: 2018-10-27T15:37:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-19T09:50:29.000Z (about 6 years ago)
- Last Synced: 2024-10-12T05:25:34.138Z (4 months ago)
- Language: JavaScript
- Size: 86.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micro - micro-logzio - A middleware for micro framework that logs requests and responses using logz.io service. (Modules / Middlewares)
README
# micro-logzio
A middleware for micro framework that logs requests and responses using logz.io service.## Usage
```
const {logzioLogger, getRequestId, getCorrelationId} = require('micro-logzio');module.exports = logzioLogger({token: 'your_logzio_token'})(async (req, res) => {
const requestId = getRequestId();
const correlationId = getCorrelationId();
});
```## References
* [maximeshr/micro-bunyan-request](https://github.com/maximeshr/micro-bunyan-request) for micro
* [tafarij/micro-correlation-id](https://github.com/tafarij/micro-correlation-id) for micro
* [Logz.io](https://logz.io) who provides ELK service with free community plan
* [ELK stack](https://www.elastic.co/elk-stack) (Elasticsearch, Logstash and Kibana) for monitoring and analyzing distributed web services