UNPKG

ihub-framework-js

Version:

Legacy version of iHub Framework written in Javascript

19 lines (15 loc) 404 B
const winston = require('winston'); const { combine, timestamp, printf, } = winston.format; const logFormat = printf(info => `${info.timestamp} ${info.level === 'warn' ? 'warning' : info.level}: ${info.message}`); module.exports = () => ( new winston.transports.Console({ level: 'debug', format: combine( winston.format.colorize(), timestamp(), logFormat, ), }) );