evilai / nbp-logger

Logging for Node.js Bot Platform based on Winston

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logging tool

This is Logging tool for Node.js Bot Platform. It based on Winston.

import loggerFactory from 'nbp-logger';
const logger = loggerFactory({
    level: 'debug',
    colorize: true
});

You can read more about logging levels on Winston's documentation page.

logger.info('Some info here');
logger.debug('Debug info');
logger.error('Error here');

Please, look at usage example.

About

Logging for Node.js Bot Platform based on Winston


Languages

Language:JavaScript 100.0%