Closed HusseinTaha closed 3 years ago
I added the code for the bunyan, and adjust the log.js file to reuse bunyan isntead of the console.log and remove the eslint no-console.
const config = require('../config'); let bunyan = require('bunyan'); let log = bunyan.createLogger({name: config.branding.title}); const logger = function(){ let a = arguments; log.debug.apply(log, a); }; logger.debug = log.debug.bind(log); logger.info = log.info.bind(log); logger.warn = log.warn.bind(log); logger.error = log.error.bind(log); module.exports = logger;
Excellent! I didn't even realize that server/log.js wasn't using bunyan. All other services do, so I just assume it was doing the same.
server/log.js
Thanks for the fix! It all looks good.
I added the code for the bunyan, and adjust the log.js file to reuse bunyan isntead of the console.log and remove the eslint no-console.