13 lines
494 B
JavaScript
13 lines
494 B
JavaScript
|
/* 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');
|