@lokalise/node-core
Advanced tools
Comparing version 6.3.0 to 6.3.1
@@ -1,2 +0,8 @@ | ||
export declare const globalLogger: import("pino").Logger<import("pino").LoggerOptions | import("pino").DestinationStream>; | ||
export declare const globalLogger: import("pino").Logger<{ | ||
formatters: { | ||
level: (label: string, numericLevel: number) => { | ||
level: string; | ||
}; | ||
}; | ||
}>; | ||
export declare function resolveGlobalErrorLogObject(err: unknown, correlationID?: string): string | { | ||
@@ -3,0 +9,0 @@ correlationID: string | undefined; |
@@ -7,3 +7,10 @@ "use strict"; | ||
const typeUtils_1 = require("../utils/typeUtils"); | ||
exports.globalLogger = (0, pino_1.pino)(); | ||
exports.globalLogger = (0, pino_1.pino)({ | ||
formatters: { | ||
level: (label, numericLevel) => { | ||
const level = pino_1.levels.labels[numericLevel] || 'unknown'; | ||
return { level }; | ||
}, | ||
}, | ||
}); | ||
function resolveGlobalErrorLogObject(err, correlationID) { | ||
@@ -10,0 +17,0 @@ if (node_util_1.types.isNativeError(err)) { |
{ | ||
"name": "@lokalise/node-core", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Lokalise", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
218157
2681