mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
552b5e68c5
* 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
23 lines
518 B
JavaScript
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;
|