Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 607 Bytes

File metadata and controls

20 lines (16 loc) · 607 Bytes

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.