0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-27 21:31:05 +00:00
renovatebot_renovate/app/logger.js
Rhys Arkins 245f64312f Refactor logger
Avoid passing it around between modules
2017-01-14 13:50:39 +01:00

13 lines
315 B
JavaScript

const logger = require('winston');
// Set log level from environment. It may be overriden later by configuration
logger.level = process.env.LOG_LEVEL || 'info';
// Colorize console logs
logger.configure({
transports: [
new (logger.transports.Console)({ colorize: true }),
],
});
module.exports = logger;