Skip to content

A middleware for micro framework that logs requests and responses using logz.io service.

License

Notifications You must be signed in to change notification settings

littledumb/micro-logzio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A middleware for micro framework that logs requests and responses using logz.io service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published