winston.format.combine( winston.format.simple(), winston.format.timestamp(), winston.format.printf(info => `[${info.timestamp}][${info.level}] - ${info.message}`) )
initLogger() { this.logger = createLogger({ level: 'warn', format: format.combine( format.colorize({ message: false }), format.simple() ), transports: [new transports.Console()] }) }
format.colorize(), format.splat(), format.simple() ]); });
timestamp(), splat(), simple(), formatter, ),
/** * Combine log formatters based on environment. * TODO (@swaagie) this might need a k8 pod label as well * * @returns {Object} Combined formats. * @private */ format() { if (this.local) { return format.combine( reduxLogger(), format.colorize(), format.splat(), format.simple() ); } // // Remark (@indexzero): in the event that redux logging is not // turned off (i.e. configureMakeStore({ reducers })) AND level // is manually set to 'debug' not having `inlineColors` here // may cause issues. // return format.combine( format.splat(), format.label({ label: this.prefix }), format.json() ); }
new winston.transports.Console({ level: config.get('log.console'), format: winston.format.combine(winston.format.colorize(), winston.format.simple()) }) host: esUrl }, format: winston.format.combine(winston.format.timestamp(), maskFormat(), winston.format.metadata(), winston.format.simple()) db: config.get('db.url'), collection: 'sys_serverlog', format: winston.format.combine(winston.format.timestamp(), maskFormat(), winston.format.metadata(), winston.format.simple()) })
winston.format.timestamp(), winston.format.colorize(), winston.format.simple(), ), }),
/** * Combine log formatters based on environment. * TODO (@swaagie) this might need a k8 pod label as well * * @returns {Object} Combined formats. * @private */ format() { if (this.local) { return format.combine( reduxLogger(), format.colorize(), format.splat(), format.simple() ); } // // Remark (@indexzero): in the event that redux logging is not // turned off (i.e. configureMakeStore({ reducers })) AND level // is manually set to 'debug' not having `inlineColors` here // may cause issues. // return format.combine( format.splat(), format.label({ label: this.prefix }), format.json() ); }
format.colorize(), format.splat(), format.simple() ]); });
winston.format.timestamp(), winston.format.colorize(), winston.format.simple(), ), }),