Skip to content

One liner to expose Winston + MongoDB transport, packaged for Meteor

License

Notifications You must be signed in to change notification settings

lfergon/lfergon-winston-mongodb

Repository files navigation

meteor-winston-mongodb

One liner to expose Winston + MongoDB transport, packaged for Meteor

Install:

  meteor add lfergon:winston-mongodb

Use:

  //Options object example for mongodb in localhost
  var mongoOptions = {
    handleExceptions: true,
    level: 'warn',
    host: 'localhost',
    db: 'meteor',
    port: 8081,
    collection: 'log',
    errorTimeout: 10000,
    timeout: 50000
  };
  //MongoDB transport
  Winston.add(MongoDB, mongoOptions);

About

One liner to expose Winston + MongoDB transport, packaged for Meteor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published