pim-import 2.80.6 → 2.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reindexModels = exports.reindexModel = exports.removeSubModelObject = exports.reindexSubModels = exports.reindexSubModel = exports.removeProductObject = exports.reindexProducts = exports.reindexProduct = exports.removeSubFamilyObject = exports.reindexSubFamily = exports.reindexSubFamilies = exports.pipedreamReindex = exports.removeFamilyObject = exports.reindexFamily = exports.reindexFamilies = exports.resetIndexSettings = exports.removeAllProductModelProductRelations = exports.removeProductFromColorVariantsByProductLine = exports.setProductAutodescriptionByTopicId = exports.getProductAutodescription = exports.setProductsAutodescription = exports.generateTechSpecPdf = exports.audit = exports.getAllProductEntriesByCatalog = exports.setProductRelationships = exports.setProductsRelationships = exports.importProductByCode = exports.importFamilies = exports.importSubFamilies = exports.importSubModels = exports.importModels = exports.dailyProductsUpdate = exports.importLatestProducts = exports.importCategories = exports.importDictionaryProductSubLine = exports.importDictionaryProductLine = exports.importDictionaryIcons = exports.importDictionaryFields = exports.savePDFToS3 = exports.getFileFromS3 = exports.saveJsonToS3 = exports.uploadS3 = exports.initS3 = exports.getTopicPage = exports.getEntryByID = exports.deleteEntries = exports.deletePages = exports.initBaseEntries = exports.initContentful = exports.initPim = void 0;
4
- exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.setLogOptions = exports.setLogId = exports.log = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = exports.removeModelObject = void 0;
4
+ exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.setLogId = exports.log = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = exports.removeModelObject = void 0;
5
5
  var config_1 = require("./pim/config");
6
6
  Object.defineProperty(exports, "initPim", { enumerable: true, get: function () { return config_1.init; } });
7
7
  var contentful_1 = require("./libs/contentful");
@@ -105,7 +105,6 @@ Object.defineProperty(exports, "getStaticDailyProducts", { enumerable: true, get
105
105
  var logs_1 = require("./libs/logs");
106
106
  Object.defineProperty(exports, "log", { enumerable: true, get: function () { return logs_1.log; } });
107
107
  Object.defineProperty(exports, "setLogId", { enumerable: true, get: function () { return logs_1.setLogId; } });
108
- Object.defineProperty(exports, "setLogOptions", { enumerable: true, get: function () { return logs_1.setLogOptions; } });
109
108
  var clean_1 = require("./algolia/clean");
110
109
  Object.defineProperty(exports, "removeRecordsByStatus", { enumerable: true, get: function () { return clean_1.removeRecordsByStatus; } });
111
110
  var puppeteer_1 = require("./libs/puppeteer");
@@ -1 +1 @@
1
- {"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":";;;;AAGA,uCAA+C;AAAtC,iGAAA,IAAI,OAAW;AACxB,gDAO2B;AANzB,4GAAA,IAAI,OAAkB;AACtB,6GAAA,eAAe,OAAA;AACf,yGAAA,WAAW,OAAA;AACX,2GAAA,aAAa,OAAA;AACb,0GAAA,YAAY,OAAA;AACZ,0GAAA,YAAY,OAAA;AAEd,gCAMmB;AALjB,4FAAA,IAAI,OAAU;AACd,8FAAA,MAAM,OAAY;AAClB,kGAAA,YAA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els = exports.reindexModel = exports.removeSubModelObject = exports.reindexSubModels = exports.reindexSubModel = exports.removeProductObject = exports.reindexProducts = exports.reindexProduct = exports.removeSubFamilyObject = exports.reindexSubFamily = exports.reindexSubFamilies = exports.pipedreamReindex = exports.removeFamilyObject = exports.reindexFamily = exports.reindexFamilies = exports.resetIndexSettings = exports.removeAllProductModelProductRelations = exports.removeProductFromColorVariantsByProductLine = exports.setProductAutodescriptionByTopicId = exports.getProductAutodescription = exports.setProductsAutodescription = exports.generateTechSpecPdf = exports.audit = exports.getAllProductEntriesByCatalog = exports.setProductRelationships = exports.setProductsRelationships = exports.importProductByCode = exports.importFamilies = exports.importSubFamilies = exports.importSubModels = exports.importModels = exports.dailyProductsUpdate = exports.importLatestProducts = exports.importCategories = exports.importDictionaryProductSubLine = exports.importDictionaryProductLine = exports.importDictionaryIcons = exports.importDictionaryFields = exports.savePDFToS3 = exports.getFileFromS3 = exports.saveJsonToS3 = exports.uploadS3 = exports.initS3 = exports.getTopicPage = exports.getEntryByID = exports.deleteEntries = exports.deletePages = exports.initBaseEntries = exports.initContentful = exports.initPim = void 0;
4
- exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.setLogOptions = exports.setLogId = exports.log = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = exports.removeModelObject = void 0;
4
+ exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.setLogPath = exports.setLogId = exports.log = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = exports.removeModelObject = void 0;
5
5
  var config_1 = require("./pim/config");
6
6
  Object.defineProperty(exports, "initPim", { enumerable: true, get: function () { return config_1.init; } });
7
7
  var contentful_1 = require("./libs/contentful");
@@ -105,7 +105,7 @@ Object.defineProperty(exports, "getStaticDailyProducts", { enumerable: true, get
105
105
  var logs_1 = require("./libs/logs");
106
106
  Object.defineProperty(exports, "log", { enumerable: true, get: function () { return logs_1.log; } });
107
107
  Object.defineProperty(exports, "setLogId", { enumerable: true, get: function () { return logs_1.setLogId; } });
108
- Object.defineProperty(exports, "setLogOptions", { enumerable: true, get: function () { return logs_1.setLogOptions; } });
108
+ Object.defineProperty(exports, "setLogPath", { enumerable: true, get: function () { return logs_1.setLogPath; } });
109
109
  var clean_1 = require("./algolia/clean");
110
110
  Object.defineProperty(exports, "removeRecordsByStatus", { enumerable: true, get: function () { return clean_1.removeRecordsByStatus; } });
111
111
  var puppeteer_1 = require("./libs/puppeteer");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAGA,uCAA+C;AAAtC,iGAAA,IAAI,OAAW;AACxB,gDAO2B;AANzB,4GAAA,IAAI,OAAkB;AACtB,6GAAA,eAAe,OAAA;AACf,yGAAA,WAAW,OAAA;AACX,2GAAA,aAAa,OAAA;AACb,0GAAA,YAAY,OAAA;AACZ,0GAAA,YAAY,OAAA;AAEd,gCAMmB;AALjB,4FAAA,IAAI,OAAU;AACd,8FAAA,MAAM,OAAY;AAClB,kGAAA,YAAY,OAAA;AACZ,mGAAA,aAAa,OAAA;AACb,iGAAA,WAAW,OAAA;AAEb,uDAKkC;AAJhC,oHAAA,sBAAsB,OAAA;AACtB,mHAAA,qB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,OAAA;AACf,6GAAA,gBAAgB,OAAA;AAChB,iHAAA,oBAAoB,OAAA;AAEtB,2CAI0B;AAHxB,sGAAA,YAAY,OAAA;AACZ,uGAAA,aAAa,OAAA;AACb,2GAAA,iBAAiB,OAAA;AAEnB,iDAI6B;AAH3B,4GAAA,eAAe,OAAA;AACf,6GAAA,gBAAgB,OAAA;AAChB,iHAAA,oBAAoB,OAAA;AAEtB,+CAI4B;AAH1B,0GAAA,cAAc,OAAA;AACd,2GAAA,eAAe,OAAA;AACf,+GAAA,mBAAmB,OAAA;AAErB,6CAI2B;AAHzB,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,4GAAA,iBAAiB,OAAA;AAEnB,qDAI+B;AAH7B,iHAAA,kBAAkB,OAAA;AAClB,kHAAA,mBAAmB,OAAA;AACnB,sHAAA,uBAAuB,OAAA;AAEzB,uDAIgC;AAH9B,mHAAA,mBAAmB,OAAA;AACnB,oHAAA,oBAAoB,OAAA;AACpB,wHAAA,wBAAwB,OAAA;AAE1B,uCAA6E;AAApE,mGAAA,WAAW,OAAA;AAAE,oGAAA,YAAY,OAAA;AAAE,wGAAA,gBAAgB,OAAA;AACpD,6CAAqD;AAA5C,yGAAA,eAAe,OAAA;AACxB,iCAA0C;AAAjC,wGAAA,eAAe,OAAA;AACxB,6CAAyD;AAAhD,mHAAA,sBAAsB,OAAA;AAC/B,oCAAwD;AAA/C,2FAAA,GAAG,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,kGAAA,UAAU,OAAA;AAClC,yCAAwD;AAA/C,8GAAA,qBAAqB,OAAA;AAC9B,8CAAoD;AAA3C,6GAAA,gBAAgB,OAAA"}
package/dist/libs/logs.js CHANGED
@@ -1,37 +1,70 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.log = exports.setLogOptions = exports.setLogId = exports.getLogger = exports.logLevelToHide = exports.logStatus = void 0;
6
+ exports.log = exports.getLogger = exports.setLogPath = exports.setLogId = exports.logStatus = void 0;
7
+ const winston_1 = __importDefault(require("winston"));
8
+ const s3_streamlogger_1 = require("s3-streamlogger");
4
9
  exports.logStatus = true;
5
- exports.logLevelToHide = [];
6
10
  let logId = "";
7
- let logOpts = {};
8
- const getLogger = () => {
9
- return null;
10
- };
11
- exports.getLogger = getLogger;
11
+ let logPath = "";
12
+ let Logger = null;
12
13
  const setLogId = (id) => {
13
- logId = id;
14
+ if (logId !== id) {
15
+ logId = id;
16
+ }
14
17
  };
15
18
  exports.setLogId = setLogId;
16
- const setLogOptions = (opts) => {
17
- logOpts = opts;
19
+ const setLogPath = (path) => {
20
+ if (logPath !== path) {
21
+ logPath = path;
22
+ if (Logger) {
23
+ Logger = exports.getLogger();
24
+ }
25
+ }
26
+ };
27
+ exports.setLogPath = setLogPath;
28
+ const getLogger = () => {
29
+ const s3_stream = new s3_streamlogger_1.S3StreamLogger({
30
+ bucket: process.env.FPI_AWS_S3_BUCKET,
31
+ access_key_id: process.env.FPI_AWS_ACCESS_KEY,
32
+ secret_access_key: process.env.FPI_AWS_SECRET_ACCESS_KEY,
33
+ folder: logId ? `logs/${logPath}/` : `logs/`,
34
+ });
35
+ const transport = new winston_1.default.transports.Stream({
36
+ stream: s3_stream,
37
+ });
38
+ s3_stream.on("error", (err) => {
39
+ console.log(err);
40
+ });
41
+ const logger = winston_1.default.createLogger({
42
+ level: "info",
43
+ format: winston_1.default.format.json(),
44
+ transports: [transport],
45
+ });
46
+ return logger;
18
47
  };
19
- exports.setLogOptions = setLogOptions;
20
- const log = (message, level = "DEBUG") => {
21
- const Logger = exports.getLogger();
48
+ exports.getLogger = getLogger;
49
+ const log = (message, level = "INFO") => {
50
+ if (!Logger) {
51
+ Logger = exports.getLogger();
52
+ }
53
+ const winstonLevel = level.toLowerCase();
22
54
  message = logId ? `[${logId}] - ${message}` : message;
23
55
  if (level === "ERROR") {
24
56
  if (Logger) {
57
+ Logger.log(winstonLevel, message);
25
58
  throw new Error(message);
26
59
  }
27
60
  else {
28
61
  throw new Error(message);
29
62
  }
30
63
  }
31
- else if (exports.logStatus || !exports.logLevelToHide.includes(level)) {
64
+ else if (exports.logStatus) {
32
65
  if (Logger) {
33
66
  console.log(`${level} - ${message}`);
34
- logOpts.level = level;
67
+ Logger.log(winstonLevel, message);
35
68
  }
36
69
  else {
37
70
  const date = new Date();
@@ -1 +1 @@
1
- {"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/libs/logs.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,cAAc,GAAgB,EAAE,CAAC;AAI9C,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAI,OAAO,GAAkB,EAAE,CAAC;AAEzB,MAAM,SAAS,GAAG,GAAG,EAAE;IAoB5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AArBW,QAAA,SAAS,aAqBpB;AAEK,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAE,EAAE;IACrC,KAAK,GAAG,EAAE,CAAC;AACb,CAAC,CAAC;AAFW,QAAA,QAAQ,YAEnB;AAEK,MAAM,aAAa,GAAG,CAAC,IAAmB,EAAE,EAAE;IACnD,OAAO,GAAG,IAAI,CAAC;AACjB,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB;AAEK,MAAM,GAAG,GAAG,CAAC,OAAe,EAAE,QAAmB,OAAO,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG,iBAAS,EAAE,CAAC;IAE3B,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IACtD,IAAI,KAAK,KAAK,OAAO,EAAE;QACrB,IAAI,MAAM,EAAE;YAEV,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;SAC1B;aAAM;YACL,MAAM,IAAI,K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G,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IACtD,IAAI,KAAK,KAAK,OAAO,EAAE;QACrB,IAAI,MAAM,EAAE;YACV,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;SAC1B;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;SAC1B;KACF;SAAM,IAAI,iBAAS,EAAE;QACpB,IAAI,MAAM,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,MAAM,OAAO,EAAE,CAAC,CAAC;YACrC,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;SACnC;aAAM;YACL,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YACxB,MAAM,UAAU,GACd,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;gBACnE,GAAG;gBACH,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACpE,OAAO,CAAC,GAAG,CAAC,IAAI,UAAU,KAAK,KAAK,MAAM,OAAO,EAAE,CAAC,CAAC;SACtD;KACF;AACH,CAAC,CAAC;AA1BW,QAAA,GAAG,OA0Bd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pim-import",
3
- "version": "2.80.6",
3
+ "version": "2.81.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -42,6 +42,8 @@
42
42
  "mime-types": "^2.1.33",
43
43
  "node-gzip": "^1.1.2",
44
44
  "puppeteer-core": "^11.0.0",
45
- "remove-markdown": "^0.3.0"
45
+ "remove-markdown": "^0.3.0",
46
+ "s3-streamlogger": "^1.7.0",
47
+ "winston": "^3.7.2"
46
48
  }
47
49
  }
package/src/browser.ts CHANGED
@@ -112,6 +112,6 @@ export { reindexPost, reindexPosts, removePostObject } from "./algolia/news";
112
112
  export { importDownloads } from "./downloads/import";
113
113
  export { getLocalISOTime } from "./utils";
114
114
  export { getStaticDailyProducts } from "./pim/endpoints";
115
- export { log, setLogId, setLogOptions } from "./libs/logs";
115
+ export { log, setLogId } from "./libs/logs";
116
116
  export { removeRecordsByStatus } from "./algolia/clean";
117
117
  export { generatePDFByUrl } from "./libs/puppeteer";
package/src/index.ts CHANGED
@@ -112,6 +112,6 @@ export { reindexPost, reindexPosts, removePostObject } from "./algolia/news";
112
112
  export { importDownloads } from "./downloads/import";
113
113
  export { getLocalISOTime } from "./utils";
114
114
  export { getStaticDailyProducts } from "./pim/endpoints";
115
- export { log, setLogId, setLogOptions } from "./libs/logs";
115
+ export { log, setLogId, setLogPath } from "./libs/logs";
116
116
  export { removeRecordsByStatus } from "./algolia/clean";
117
117
  export { generatePDFByUrl } from "./libs/puppeteer";
package/src/libs/logs.ts CHANGED
@@ -1,60 +1,77 @@
1
- import { ObjectPartial } from "../types";
2
- export type LogLevels = "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"; // https://www.npmjs.com/package/@logdna/logger#user-content-supported-log-levels
1
+ import winston from "winston";
2
+ // @ts-ignore
3
+ import { S3StreamLogger } from "s3-streamlogger";
4
+ export type LogLevels =
5
+ | "VERBOSE"
6
+ | "DEBUG"
7
+ | "INFO"
8
+ | "WARN"
9
+ | "ERROR"
10
+ | "SILLY"
11
+ | "HTTP";
3
12
  export const logStatus = true;
4
- export const logLevelToHide: LogLevels[] = []; // ["debug", "info"];
13
+ let logId: string = "";
14
+ let logPath: string = "";
15
+ let Logger: any = null;
5
16
 
6
- // const logdna = require("@logdna/logger");
7
- // let logger: any = null;
8
- let logId = "";
9
- let logOpts: ObjectPartial = {};
17
+ export const setLogId = (id: string) => {
18
+ if (logId !== id) {
19
+ logId = id;
20
+ }
21
+ };
10
22
 
11
- export const getLogger = () => {
12
- // if (logger) {
13
- // // console.log("Logger already exists");
14
- // } else if (
15
- // process?.env?.FPI_LOGDNA_KEY &&
16
- // process?.env?.FPI_LOGDNA_APP_NAME
17
- // ) {
18
- // // console.log("Set Logger");
19
- // const options = {
20
- // app: process.env.FPI_LOGDNA_APP_NAME,
21
- // level: "debug", // set a default for when level is not provided in function calls
22
- // };
23
- // logger = logdna.createLogger(process.env.FPI_LOGDNA_KEY, options);
24
- // logger.on("error", console.error);
25
- // } else {
26
- // console.log(
27
- // "FPI_LOGDNA_KEY or FPI_LOGDNA_APP_NAME evironment variables not found"
28
- // );
29
- // }
23
+ export const setLogPath = (path: string) => {
24
+ if (logPath !== path) {
25
+ logPath = path;
30
26
 
31
- return null; //logger;
27
+ if (Logger) {
28
+ Logger = getLogger();
29
+ }
30
+ }
32
31
  };
33
32
 
34
- export const setLogId = (id: string) => {
35
- logId = id;
36
- };
33
+ export const getLogger = () => {
34
+ const s3_stream = new S3StreamLogger({
35
+ bucket: process.env.FPI_AWS_S3_BUCKET,
36
+ access_key_id: process.env.FPI_AWS_ACCESS_KEY,
37
+ secret_access_key: process.env.FPI_AWS_SECRET_ACCESS_KEY,
38
+ folder: logId ? `logs/${logPath}/` : `logs/`,
39
+ });
37
40
 
38
- export const setLogOptions = (opts: ObjectPartial) => {
39
- logOpts = opts;
40
- };
41
+ const transport = new winston.transports.Stream({
42
+ stream: s3_stream,
43
+ });
44
+
45
+ s3_stream.on("error", (err: any) => {
46
+ console.log(err);
47
+ });
41
48
 
42
- export const log = (message: string, level: LogLevels = "DEBUG") => {
43
- const Logger = getLogger();
49
+ const logger = winston.createLogger({
50
+ level: "info",
51
+ format: winston.format.json(),
52
+ transports: [transport],
53
+ });
44
54
 
55
+ return logger;
56
+ };
57
+
58
+ export const log = (message: string, level: LogLevels = "INFO") => {
59
+ if (!Logger) {
60
+ Logger = getLogger();
61
+ }
62
+ const winstonLevel: string = level.toLowerCase();
45
63
  message = logId ? `[${logId}] - ${message}` : message;
46
64
  if (level === "ERROR") {
47
65
  if (Logger) {
48
- // Logger.error(message);
66
+ Logger.log(winstonLevel, message);
49
67
  throw new Error(message);
50
68
  } else {
51
69
  throw new Error(message);
52
70
  }
53
- } else if (logStatus || !logLevelToHide.includes(level)) {
71
+ } else if (logStatus) {
54
72
  if (Logger) {
55
73
  console.log(`${level} - ${message}`);
56
- logOpts.level = level;
57
- // Logger.log(message, logOpts);
74
+ Logger.log(winstonLevel, message);
58
75
  } else {
59
76
  const date = new Date();
60
77
  const dateFormat =
@@ -26,6 +26,6 @@ export { reindexPost, reindexPosts, removePostObject } from "./algolia/news";
26
26
  export { importDownloads } from "./downloads/import";
27
27
  export { getLocalISOTime } from "./utils";
28
28
  export { getStaticDailyProducts } from "./pim/endpoints";
29
- export { log, setLogId, setLogOptions } from "./libs/logs";
29
+ export { log, setLogId } from "./libs/logs";
30
30
  export { removeRecordsByStatus } from "./algolia/clean";
31
31
  export { generatePDFByUrl } from "./libs/puppeteer";
package/types/index.d.ts CHANGED
@@ -26,6 +26,6 @@ export { reindexPost, reindexPosts, removePostObject } from "./algolia/news";
26
26
  export { importDownloads } from "./downloads/import";
27
27
  export { getLocalISOTime } from "./utils";
28
28
  export { getStaticDailyProducts } from "./pim/endpoints";
29
- export { log, setLogId, setLogOptions } from "./libs/logs";
29
+ export { log, setLogId, setLogPath } from "./libs/logs";
30
30
  export { removeRecordsByStatus } from "./algolia/clean";
31
31
  export { generatePDFByUrl } from "./libs/puppeteer";
@@ -1,8 +1,7 @@
1
- import { ObjectPartial } from "../types";
2
- export declare type LogLevels = "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL";
1
+ import winston from "winston";
2
+ export declare type LogLevels = "VERBOSE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "SILLY" | "HTTP";
3
3
  export declare const logStatus = true;
4
- export declare const logLevelToHide: LogLevels[];
5
- export declare const getLogger: () => null;
6
4
  export declare const setLogId: (id: string) => void;
7
- export declare const setLogOptions: (opts: ObjectPartial) => void;
5
+ export declare const setLogPath: (path: string) => void;
6
+ export declare const getLogger: () => winston.Logger;
8
7
  export declare const log: (message: string, level?: LogLevels) => void;