![Module Logo](https://image.ibb.co/f4cWVL/nodejs-6-569582.png)
Logger System for Nodejs using MongoDB
![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-blue.svg)
Installation
$ npm install @jmbl1685/logger
Quick Start
How to use the module? Easy!!
'use strict'
const logger = require('@jmbl1685/logger').default({
host: '{{your_mongo_connection_string}}',
logname: 'logs'
})
logger({
ip: '192.168.1.67',
body: {
name: 'Juan Manuel',
lastname: 'Batty Linero'
},
response: {
message: 'User created'
},
...
})
logger({
transactionDate: Date.now(),
...
})
'use strict'
import NodeLogger from '@jmbl1685/logger'
const logger = NodeLogger({
host: '{{your_mongo_connection_string}}'
})
logger({
body: {
name: 'Juan Manuel',
lastname: 'Batty Linero',
state: true,
identification: 12345
}
})
![Module Logo](https://image.ibb.co/i6NvPf/examaple.png)
Used modules
License
MIT