A MongoDB appender for log4js-node that allows logging events directly to a MongoDB collection. Current stable version is 0.2.5, with semver indicating early development. It wraps the MongoDB Node.js driver and integrates with log4js's configuration system. Key differentiator: a dedicated MongoDB appender for log4js, supporting filtered logging levels and custom layouts. Released under ISC license.
npm install log4js-db-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures log4js with a MongoDB appender to log events to a remote database, including an example logger call.
Remove useNewUrlParser and useUnifiedTopology options; they are ignored in MongoDB driver 4.0+.
Ensure the appender name in categories matches the key used in appenders configuration.
Use consistent naming: if you define appenders: { mongo: ... }, then categories should reference 'mongo'.Remove useNewUrlParser and useUnifiedTopology from mongoSetting.options.