Const log
log: LoggerInstance = new Logger({level,transports: [new transports.Console({colorize: true,timestamp: () => moment().format("YYYY-MM-DD hh:mm:ss.SSS"),formatter: (options) => {// Figure out the logging caller location// XXX slow and hacky approachlet location = "?";const lines = new Error().stack.split("\n");for (const line of lines) {if (line.indexOf(sourcesRoot) !== -1 &&line.indexOf(__filename) === -1 &&line.indexOf("node_modules") === -1) {const locInfo = line.replace(/(.*\()/g, "").replace(process.cwd(), "").split(/[ :]/g);location = locInfo[locInfo.length - 3].replace("\\", "") +":" + locInfo[locInfo.length - 2];break;}}// Build the logging lineconst prefix = options.timestamp() + " " + options.level.toUpperCase() + " (" + location + ")";const message = options.message ? (" " + util.format(options.message)) : "";return winstonConfig.colorize(options.level, prefix) + message;},})]})