0.1.1 • Published 6 years ago

winston-mongodemon v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

MongoDemon

Gitter

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'.