16 lines
427 B
JavaScript
16 lines
427 B
JavaScript
|
const { LoggerClient } = require('../');
|
||
|
|
||
|
const logger = new LoggerClient({
|
||
|
debug: true,
|
||
|
customTypes: [ 'access' ],
|
||
|
customStreams: [ 'access' ],
|
||
|
customTypeMapping: { access: 'access', warn: 'error' },
|
||
|
customColors: { access: 'green' }
|
||
|
});
|
||
|
|
||
|
logger.info('Info test');
|
||
|
logger.status('Status test');
|
||
|
logger.debug('Debug test');
|
||
|
logger.warn('Warn test');
|
||
|
logger.error('Error test');
|
||
|
logger.access('Access test');
|