Powerful and colorful logging for Node.js — console or file-based!
npm install logginglogimport logginglog from 'logginglog';
const logger = logginglog.createLogger();
logger.log('Hello world!');
logger.info('Information');
logger.warn('Warning');
logger.error('Error message');const custom = logginglog.customLogger('MyLogger', {
color: 'blue',
styles: ['bold', 'underline']
});
custom('A custom log line');bolditalicunderlinedim
All chalk-extra colors, such as red, green, blue, cyan, etc.
const fileLogger = logginglog.createFileLogger('mylogs.txt');
fileLogger.log('This line will be written to the file.');MIT