MongoDB Log Writer
JSON →A library for writing MongoDB logv2 messages, commonly used in MongoDB tools and drivers. Current stable version is 2.5.13, released as part of the mongodb-js/devtools-shared monorepo. It provides a structured log writer with support for log rotation, retention, gzip compression, and dynamic log level management. The library ships TypeScript type definitions and is compatible with MongoDB's logv2 format, making it suitable for applications that need to produce logs parsable by MongoDB tooling. Release cadence follows the monorepo's schedule, with updates tied to peer dependency changes (bson v4, v5, v6, or v7).
Resources
packagemongodb-log-writer ↗
API endpoints
full doc /v1/registry/mongodb-log-writer