micro-logzio

0.3.0 • Public • Published

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

/micro-logzio/

    Package Sidebar

    Install

    npm i micro-logzio

    Weekly Downloads

    7

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    4.28 kB

    Total Files

    4

    Last publish

    Collaborators

    • littledumb