This package is used for logging using winston.
npm install winston-logger-adapter
var logger = require('.');
var config = {
level: 'debug',
enableMails: true,
mailConfig: {
to: '', // Example Leslie <[email protected]>
host: "",
port: 465,
ssl: true,
username: '',
password: '',
subject: 'Example subject',
from: 'Example Sender <[email protected]>', // EX: 'I'M A BOT <[email protected]>, ...'
level: 'error'
},
enableSentry: true,
sentryConfig: {
level: 'error',
dsn: '{{ YOUR SENTRY DSN }}'
}
}
logger.initAdapter({}, config);
logger.log('error', 'asdadasda');