function patchedConfigure()

in src/diagnostic-channel-publishers/src/winston.pub.ts [87:97]


    function patchedConfigure() {
        // Grab highest sev logging level in case of custom logging levels
        const levels = arguments[0].levels || originalWinston.config.npm.levels;
        let lastLevel;
        for (const level in levels) {
            if (levels.hasOwnProperty(level)) {
                lastLevel = lastLevel === undefined || levels[level] > levels[lastLevel] ? level : lastLevel;
            }
        }
        this.add(new AppInsightsTransport(originalWinston, {level: lastLevel}));
    }