MongoDB storage plugin for Errsole, a Node.js logger with a built-in web dashboard. Version 3.0.0 is the current stable release. This plugin enables storing and querying application logs in MongoDB, making it ideal for apps already using MongoDB. Compared to other storage backends (e.g., file-based or SQLite), it offers seamless integration with existing MongoDB infrastructure, scalability, and the ability to leverage MongoDB's aggregation framework for advanced log analysis.
npm install errsole-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize Errsole with the MongoDB storage plugin, create a logger, and log info and error messages.
Update Mongoose dependency to 6.0.0 or higher.
Rename 'connectionOptions' to 'mongooseOptions' in the configuration object.
Use the 'storageError' event on the logger to detect connection issues: logger.on('storageError', (err) => console.error(err)).Set MONGO_URI environment variable or pass a fallback URI string when initializing ErrsoleMongoDB.
Run: npm install errsole-mongodb
Change to: import { ErrsoleMongoDB } from 'errsole-mongodb';