This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { format, createLogger, transports } = require('winston'); | |
const moment = require('moment'); | |
// Thanks to luislobo for the workaround to handle multiple parameters - https://github.com/winstonjs/winston/issues/1427#issuecomment-427104223 | |
// Format Object | |
function formatObject(param) { | |
if (param instanceof Object) { | |
return JSON.stringify(param); | |
} |