renovate/lib/logger/index.js
Rhys Arkins 552b5e68c5 Refactor helpers (#382)
* Move yarn and npm helpers into branch worker

* Fix name

* Move package-json helper

* Update name

* Move changelog

* Move github-app

* Remove unused platform

* Move logger

* Fix lint
2017-06-29 07:29:41 +02:00

23 lines
518 B
JavaScript

const bunyan = require('bunyan');
const PrettyStdout = require('./pretty-stdout').RenovateStream;
const configSerializer = require('./config-serializer');
const prettyStdOut = new PrettyStdout();
prettyStdOut.pipe(process.stdout);
const logger = bunyan.createLogger({
name: 'renovate',
serializers: {
config: configSerializer,
},
streams: [
{
name: 'stdout',
level: process.env.LOG_LEVEL || 'info',
type: 'raw',
stream: prettyStdOut,
},
],
});
module.exports = logger;