{"library":"bunyan-middleware","type":"library","category":null,"description":"bunyan-middleware is a Node.js middleware for logging HTTP requests and responses using the Bunyan logger. Currently at version 1.0.2, it appears to be a stable project, though its release cadence is not explicitly stated. This library offers robust features for integrating structured logging into Express, Connect, or pure HTTP servers. Key differentiators include automatic management of the `X-Request-Id` header (generating a UUID if not present), logging request-response duration, providing a request-scoped logger (`req.log`) for tracing individual requests throughout an application, and custom serializers for `req` and `res` objects. It also provides functionality to obscure sensitive headers in log outputs, enhancing security and compliance. It is a direct dependency of an existing Bunyan logger instance, allowing for consistent logging configuration.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","bunyan","logger","express","request","response","connect","http","duration","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bunyan-middleware","imports":["const bunyanMiddleware = require('bunyan-middleware')","import bunyanMiddleware = require('bunyan-middleware');\ntype Options = bunyanMiddleware.BunyanMiddlewareOptions;"]},{"cmd":"yarn add bunyan-middleware","imports":[]},{"cmd":"pnpm add bunyan-middleware","imports":[]}],"homepage":null,"github":"https://github.com/tellnes/bunyan-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bunyan-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bunyan-middleware/compatibility"}}