diff --git a/docs/apFileSystem.json b/docs/apFileSystem.json index 4a97af2..3764987 100644 --- a/docs/apFileSystem.json +++ b/docs/apFileSystem.json @@ -1,7 +1,7 @@ { "jsonFields": [], "method": "advanced", - "jsonLogScript": "// Function called to extract date, level, app name and message\n//\n// @param preJSONString: string - optional non-JSON string proceeding JSON object\n// @param jsonObject: {} - JSON log data\n// @returns {date: Date, level: string, category: string, appName: string, message: string, rawLine: string, additionalJSON: {} }\n//\n// category is the availability zone\n// appName is the pod name\n//\nconst extractDateLevelCategoryAppNameMessage = function (preJSONString, jsonObject) {\n let level = 'info';\n let date = new Date();\n let category = '';\n let appName = 'App_name_is_not_set';\n let message = 'Message is not set - Click \"?\" in upper right to extract fields from JSON';\n // return raw JSON (optional)\n let rawLine;\n // Copy any JSON fields not defined in jsonObject\n let additionalJSON = {};\n\n // Set the level\n // level = jsonObject.m_level;\n\n // Set the date\n //date = jsonObject.my_date;\n\n // Set the app name\n //appName = jsonObject.my_app;\n\n // Set message\n //message = jsonObject.my_message;\n\n return { date, level, category, appName, message, rawLine, additionalJSON };\n}", + "jsonLogScript": "// Function called to extract date, level, app name and message\n//\n// @param preJSONString: string - optional non-JSON string proceeding JSON object\n// @param jsonObject: {} - JSON log data\n// @returns {date: Date, level: string, category: string, appName: string, message: string, rawLine: string, additionalJSON: {} }\n//\n// category is the availability zone\n// appName is the pod name\n//\nconst extractDateLevelCategoryAppNameMessage = function (preJSONString, jsonObject) {\n let level = 'info';\n let date = new Date();\n let category = '';\n let kind = 'kind_is_not_set';\n let message = 'Message is not set - edit or replace client/public/plugins/parsejson/plugin.js';\n // return raw JSON (optional)\n let rawLine;\n // Copy any JSON fields not defined in jsonObject\n let additionalJSON = {};\n\n // Set the level\n // level = jsonObject.m_level;\n\n // Set the date\n // date = jsonObject.my_date;\n\n // Set the kind\n //kind = jsonObject.my_kind;\n\n // Set message\n //message = jsonObject.my_message;\n\n return { date, level, category, kind, message, rawLine, additionalJSON };\n}", "queries": {}, "briefJsonFields": "{}", "jsonSubQueries": "[]", diff --git a/jsonLogScript b/jsonLogScript index f7dbef8..2a0d933 100644 --- a/jsonLogScript +++ b/jsonLogScript @@ -11,7 +11,7 @@ const extractDateLevelCategoryAppNameMessage = function (preJSONString, jsonObje let level = 'info'; let date = new Date(); let category = ''; - let appName = 'App_name_is_not_set'; + let kind = 'kind_is_not_set'; let message = 'Message is not set - edit or replace client/public/plugins/parsejson/plugin.js'; // return raw JSON (optional) let rawLine; @@ -24,11 +24,11 @@ const extractDateLevelCategoryAppNameMessage = function (preJSONString, jsonObje // Set the date // date = jsonObject.my_date; - // Set the app name - //appName = jsonObject.my_app; + // Set the kind + //kind = jsonObject.my_kind; // Set message //message = jsonObject.my_message; - return { date, level, category, appName, message, rawLine, additionalJSON }; + return { date, level, category, kind, message, rawLine, additionalJSON }; } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f2ff198..70a14b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -415,9 +415,9 @@ } }, "node_modules/allproxy": { - "version": "3.50.4", - "resolved": "https://registry.npmjs.org/allproxy/-/allproxy-3.50.4.tgz", - "integrity": "sha512-lyBLFds6w+t6gB6QJ1fi7H+K+AlH9m84GbyA8bTjuxpo5zZRqA/XVmOQraU08E00l9b5PKcZuSjnRc5iIT9QAg==", + "version": "3.50.5", + "resolved": "https://registry.npmjs.org/allproxy/-/allproxy-3.50.5.tgz", + "integrity": "sha512-320ZJF4ReTqqpalA0PGxQknE8a5Qv5QJoGb/ul0Y1owZvBc3VTrEpBZmFmlgQK35lZRGrxJCQOG/7EfeolFSAQ==", "hasInstallScript": true, "dependencies": { "@httptoolkit/browser-launcher": "^2.0.1",