formatProperties()

in core/logging/loggers/console.js [123:149]


    formatProperties(properties) {
        /** @type {string} */
        let consoleMsg = "";

        if (!utils.isNullOrUndefined(properties)) {

            if (this.settings.logAllProperties) {
                for (const propertyName in properties) {
                    if (properties.hasOwnProperty(propertyName) && !propertyName.startsWith("Caller.")) {
                        consoleMsg += `<${propertyName}:${properties[propertyName]}>`;
                    }
                }
            }

            if (this.settings.logCallerInfo) {
                const callerFileName = properties["Caller.FileName"];
                const callerName = properties["Caller.Name"];

                if ((callerFileName && !utils.string.isEmptyOrWhitespace(callerFileName))
                    || (callerName && !utils.string.isEmptyOrWhitespace(callerName))) {
                    consoleMsg += `[${path.basename(callerFileName)}:${callerName}]`;
                }
            }
        }

        return consoleMsg;
    }