How to use winston-mongodb - 2 common examples

To help you get started, we’ve selected a few winston-mongodb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github paypal / appsforhere / index.js View on Github external
new Log({message: 'Ensuring capped collection.'}).save(function () {
        var MongoDB = require('winston-mongodb').MongoDB;
        // only way to set the default logger config is via the private pine impl
        logger._impl.add(MongoDB, self.config.get('winston-mongodb'));
    });
};

winston-mongodb

A MongoDB transport for winston

MIT
Latest version published 3 months ago

Package Health Score

82 / 100
Full package analysis

Popular winston-mongodb functions