winston-mongodemon
v0.1.1
Published
An experimental MongoDB 3.6 transport for winston
Downloads
3
Maintainers
Readme
MongoDemon
An experimental MongoDB 3.6 transport for winston.
Current version supports only mongodb driver version 3.x.
Motivation
tldr;?
: To break the winston codebase into small modules that work
together.
The winston codebase has been growing significantly with contributions and other logging transports. This is awesome. However, taking a ton of additional dependencies just to do something simple like logging to the Console and a File is overkill.
Usage
var winston = require('winston');
/**
* Requiring `winston-mongodemon` will expose
* `winston.transports.MongoDB`
*/
require('winston-mongodemon');
winston.add(winston.transports.MongoDB, options);
This MongoDB transport requires 'db' & 'dbName'.