logger/test/test.js

13 lines
494 B
JavaScript
Raw Normal View History

2022-11-06 16:21:10 +01:00
/* eslint-disable no-console */
const { MasterLogger } = require('../');
const logger = new MasterLogger({ debug: true, customStreams: [ 'debug' ], customTypeMapping: { debug: 'debug' } });
const { types, colours, streamTypes, streamTypeMapping } = logger; // , writeStreams
console.log(types, colours, streamTypes, streamTypeMapping); // , writeStreams
logger.info('Info test');
logger.status('Status test');
logger.debug('Debug test');
logger.warn('Warn test');
logger.error('Error test');