@strapi/logger
Advanced tools
Comparing version 0.0.0-experimental.a13c58eec89ab119f0e381fb79c0252979e9c125 to 0.0.0-experimental.a28002c793bc4de2a8b3c6c5b9c2336c5a6db7a9
@@ -5,2 +5,3 @@ export { default as prettyPrint } from './pretty-print'; | ||
export { default as excludeColors } from './exclude-colors'; | ||
export { default as detailedLogs } from './detailed-log'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,4 +5,3 @@ "use strict"; | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) | ||
return e; | ||
if (e && e.__esModule) return e; | ||
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } }); | ||
@@ -69,4 +68,16 @@ if (e) { | ||
}); | ||
const detailedLog = winston.format.printf(({ message, level, timestamp }) => { | ||
if (typeof message !== "string") { | ||
return message; | ||
} | ||
const newMessage = `[${timestamp}] ${level}: ${message}`; | ||
return newMessage.replace( | ||
// eslint-disable-next-line no-control-regex | ||
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, | ||
"" | ||
); | ||
}); | ||
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
__proto__: null, | ||
detailedLogs: detailedLog, | ||
excludeColors, | ||
@@ -73,0 +84,0 @@ levelFilter, |
{ | ||
"name": "@strapi/logger", | ||
"version": "0.0.0-experimental.a13c58eec89ab119f0e381fb79c0252979e9c125", | ||
"version": "0.0.0-experimental.a28002c793bc4de2a8b3c6c5b9c2336c5a6db7a9", | ||
"description": "Strapi's logger", | ||
@@ -45,5 +45,5 @@ "homepage": "https://strapi.io", | ||
"devDependencies": { | ||
"@strapi/pack-up": "5.0.0", | ||
"eslint-config-custom": "0.0.0-experimental.a13c58eec89ab119f0e381fb79c0252979e9c125", | ||
"tsconfig": "0.0.0-experimental.a13c58eec89ab119f0e381fb79c0252979e9c125" | ||
"@strapi/pack-up": "5.0.2", | ||
"eslint-config-custom": "0.0.0-experimental.a28002c793bc4de2a8b3c6c5b9c2336c5a6db7a9", | ||
"tsconfig": "0.0.0-experimental.a28002c793bc4de2a8b3c6c5b9c2336c5a6db7a9" | ||
}, | ||
@@ -53,4 +53,3 @@ "engines": { | ||
"npm": ">=6.0.0" | ||
}, | ||
"gitHead": "a13c58eec89ab119f0e381fb79c0252979e9c125" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30050
28
287