mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-27 21:31:05 +00:00
245f64312f
Avoid passing it around between modules
13 lines
315 B
JavaScript
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;
|