whatbot-logger
v1.0.1
Published
logger for whatbot pe
Downloads
6
Readme
Whatbot Logger
Logger for whatbot pe
Installation
npm i whatbot-logger
How to use it ?
First set config:
const setupLogger = require('whatbot-logger');
const config = {
name: 'something',
loggly: {
token: '',
subdomain: '',
bufferLength: 5,
level: 'info',
},
};
module.exports = setupLogger(config);
Second just import and use it:
const logger = require('whatbot-logger');
logger.info('Hello world!');