Socket
Book a DemoInstallSign in
Socket

loggin-js-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loggin-js-mongodb

A MongoDB plugin for loggin-js, centralizes ans saves logs on MongoDB

0.1.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

Loggin'JS MongoDB Plugin

NPM version Downloads Dependencies Known Vulnerabilities
NPM quality

A little MongoDB plugin for loggin-js, save your logs centralized in a database. And later retrieval

Table Of Content

Features

Installing

With npm

npm install loggin-js-mongodb

With yarn

yarn install loggin-js-mongodb

Importing

Importing in node:

const logginMongo = require('loggin-js-mongodb');

Importing using ES6 import:

import logginMongo from 'loggin-js-mongodb';

Usage

const logginMongo = require('loggin-js-mongodb');
loggin.use(logginMongo);

let mongodb = loggin
    .notifier('mongodb', { dbUrl: 'mongodb://0.0.0.0:27017/logs' })
    .color(true)
    .level('debug')
    .formatter('detailed')
    .init();

let logger = loggin.logger();
logger.setNotifiers([csol, mongodb]);

...
let logs = mongodb.fetch({ 'level.name': 'ERROR' });

Collaborating

Pull requests are welcome, as well as any other type of contribution.

Setting up

# clone the repo
$ git clone git@github.com:nombrekeff/loggin-js-mongodb.git

# enter the project
$ cd loggin-js-mongodb

# install dependencies
$ npm install

# run tests
$ npm test

FAQs

Package last updated on 03 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.