@sap-cloud-sdk/util 2.4.0 → 2.4.1-20220525080946.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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
import { Format } from 'logform';
|
|
1
2
|
import { Logger } from 'winston';
|
|
3
|
+
/**
|
|
4
|
+
* Log formats provided by the util package.
|
|
5
|
+
*/
|
|
6
|
+
export declare const logFormat: {
|
|
7
|
+
kibana: Format;
|
|
8
|
+
local: Format;
|
|
9
|
+
};
|
|
2
10
|
/**
|
|
3
11
|
* Mute all logger output created by the SAP Cloud SDK Logger. This also applies to future loggers created. Useful for tests.
|
|
4
12
|
*/
|
|
@@ -68,6 +76,24 @@ export declare function setGlobalLogLevel(level: LogLevel): void;
|
|
|
68
76
|
* @returns The global log level, or `undefined` when not defined.
|
|
69
77
|
*/
|
|
70
78
|
export declare function getGlobalLogLevel(): string | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Change the log format of a logger based on its message context.
|
|
81
|
+
* e.g., to set the log format for the destination accessor module of the SDK to `local`, simply call `setLogFormat(logFormat.local, 'destination-accessor')`.
|
|
82
|
+
* @param format - Format to set the logger to. Use `logFormat` to get the pre-defined log formats or use a custom log format.
|
|
83
|
+
* @param messageContextOrLogger - Message context of the logger to change the log level for or the logger itself.
|
|
84
|
+
*/
|
|
85
|
+
export declare function setLogFormat(format: Format, messageContextOrLogger?: string | Logger): void;
|
|
86
|
+
/**
|
|
87
|
+
* Change the global log format of the container which will set default format for all active loggers.
|
|
88
|
+
* e.g., to set the global log format to `local` call `setGlobalLogLevel(logFormat.local)` or use a custom log format.
|
|
89
|
+
* @param format - The log format to set the global log format to.
|
|
90
|
+
*/
|
|
91
|
+
export declare function setGlobalLogFormat(format: Format): void;
|
|
92
|
+
/**
|
|
93
|
+
* Get the global log format of the container.
|
|
94
|
+
* @returns The global log format, or `undefined` when not defined.
|
|
95
|
+
*/
|
|
96
|
+
export declare function getGlobalLogFormat(): Format | undefined;
|
|
71
97
|
/**
|
|
72
98
|
* Potentially sensitive keys will be matched case-insensitive and as substrings.
|
|
73
99
|
* Matches will be replaced with a placeholder string.
|
|
@@ -77,6 +103,14 @@ export declare function getGlobalLogLevel(): string | undefined;
|
|
|
77
103
|
* @returns The sanitized copy of the input record.
|
|
78
104
|
*/
|
|
79
105
|
export declare function sanitizeRecord<T = any>(input: Record<string, T>, replacementString?: string, sensitiveKeys?: string[]): Record<string, T>;
|
|
106
|
+
/**
|
|
107
|
+
* Reset all the custom log levels for loggers and message context.
|
|
108
|
+
*/
|
|
109
|
+
export declare function resetCustomLogLevels(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Reset all the custom log formats for loggers and message context.
|
|
112
|
+
*/
|
|
113
|
+
export declare function resetCustomLogFormats(): void;
|
|
80
114
|
/**
|
|
81
115
|
* Npm log levels used for the SAP Cloud SDK logger.
|
|
82
116
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-sdk-logger.d.ts","sourceRoot":"","sources":["../../src/logger/cloud-sdk-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAGP,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"cloud-sdk-logger.d.ts","sourceRoot":"","sources":["../../src/logger/cloud-sdk-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAEL,MAAM,EAGP,MAAM,SAAS,CAAC;AAQjB;;GAEG;AACH,eAAO,MAAM,SAAS;;;CAGrB,CAAC;AA0BF;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAEpC;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAIlC,CAAC;AAEH;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C;AAED;;GA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O,GACP,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sanitizeRecord = exports.getGlobalLogLevel = exports.setGlobalLogLevel = exports.setLogLevel = exports.getLogger = exports.createLogger = exports.enableExceptionLogger = exports.disableExceptionLogger = exports.cloudSdkExceptionLogger = exports.unmuteLoggers = exports.muteLoggers = void 0;
|
|
3
|
+
exports.resetCustomLogFormats = exports.resetCustomLogLevels = exports.sanitizeRecord = exports.getGlobalLogFormat = exports.setGlobalLogFormat = exports.setLogFormat = exports.getGlobalLogLevel = exports.setGlobalLogLevel = exports.setLogLevel = exports.getLogger = exports.createLogger = exports.enableExceptionLogger = exports.disableExceptionLogger = exports.cloudSdkExceptionLogger = exports.unmuteLoggers = exports.muteLoggers = exports.logFormat = void 0;
|
|
4
4
|
const winston_1 = require("winston");
|
|
5
5
|
const format_1 = require("./format");
|
|
6
|
-
const format = process.env.VCAP_SERVICES ? format_1.kibana : format_1.local;
|
|
7
6
|
const loggerReference = 'sap-cloud-sdk-logger';
|
|
8
7
|
const exceptionLoggerId = 'sap-cloud-sdk-exception-logger';
|
|
9
8
|
const container = new winston_1.Container();
|
|
9
|
+
/**
|
|
10
|
+
* Log formats provided by the util package.
|
|
11
|
+
*/
|
|
12
|
+
exports.logFormat = {
|
|
13
|
+
kibana: format_1.kibana,
|
|
14
|
+
local: format_1.local
|
|
15
|
+
};
|
|
16
|
+
// Set default format based on NODE_ENV
|
|
17
|
+
container.options.format =
|
|
18
|
+
process.env.NODE_ENV === 'production' ? exports.logFormat.kibana : exports.logFormat.local;
|
|
10
19
|
const exceptionTransport = new winston_1.transports.Console();
|
|
11
20
|
const customLogLevels = {};
|
|
21
|
+
const customLogFormats = {};
|
|
12
22
|
const DEFAULT_LOGGER__MESSAGE_CONTEXT = '__DEFAULT_LOGGER__MESSAGE_CONTEXT';
|
|
13
23
|
let silent = false;
|
|
14
24
|
const moduleLogger = createLogger({
|
|
@@ -41,7 +51,7 @@ exports.unmuteLoggers = unmuteLoggers;
|
|
|
41
51
|
*/
|
|
42
52
|
exports.cloudSdkExceptionLogger = container.get(exceptionLoggerId, {
|
|
43
53
|
defaultMeta: { logger: loggerReference, test: 'exception' },
|
|
44
|
-
format,
|
|
54
|
+
format: container.options.format,
|
|
45
55
|
exceptionHandlers: [exceptionTransport]
|
|
46
56
|
});
|
|
47
57
|
/**
|
|
@@ -99,7 +109,10 @@ function createLogger(messageContext) {
|
|
|
99
109
|
}),
|
|
100
110
|
logger: customFields.logger || loggerReference
|
|
101
111
|
},
|
|
102
|
-
format
|
|
112
|
+
format: customLogFormats[customFields.messageContext] ||
|
|
113
|
+
customFields.format ||
|
|
114
|
+
container.options.format ||
|
|
115
|
+
exports.logFormat.local,
|
|
103
116
|
transports: [new winston_1.transports.Console()]
|
|
104
117
|
});
|
|
105
118
|
toggleSilenceTransports(logger, silent);
|
|
@@ -161,6 +174,50 @@ function getGlobalLogLevel() {
|
|
|
161
174
|
return container.options.level;
|
|
162
175
|
}
|
|
163
176
|
exports.getGlobalLogLevel = getGlobalLogLevel;
|
|
177
|
+
/**
|
|
178
|
+
* Change the log format of a logger based on its message context.
|
|
179
|
+
* e.g., to set the log format for the destination accessor module of the SDK to `local`, simply call `setLogFormat(logFormat.local, 'destination-accessor')`.
|
|
180
|
+
* @param format - Format to set the logger to. Use `logFormat` to get the pre-defined log formats or use a custom log format.
|
|
181
|
+
* @param messageContextOrLogger - Message context of the logger to change the log level for or the logger itself.
|
|
182
|
+
*/
|
|
183
|
+
function setLogFormat(format, messageContextOrLogger = DEFAULT_LOGGER__MESSAGE_CONTEXT) {
|
|
184
|
+
const messageContext = typeof messageContextOrLogger === 'string'
|
|
185
|
+
? messageContextOrLogger
|
|
186
|
+
: getMessageContext(messageContextOrLogger);
|
|
187
|
+
if (messageContext) {
|
|
188
|
+
customLogFormats[messageContext] = format;
|
|
189
|
+
if (container.has(messageContext)) {
|
|
190
|
+
const logger = container.get(messageContext);
|
|
191
|
+
logger.format = format;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
else if (typeof messageContextOrLogger !== 'string') {
|
|
195
|
+
moduleLogger.warn('Setting log format for logger with unknown message context');
|
|
196
|
+
messageContextOrLogger.format = format;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
exports.setLogFormat = setLogFormat;
|
|
200
|
+
/**
|
|
201
|
+
* Change the global log format of the container which will set default format for all active loggers.
|
|
202
|
+
* e.g., to set the global log format to `local` call `setGlobalLogLevel(logFormat.local)` or use a custom log format.
|
|
203
|
+
* @param format - The log format to set the global log format to.
|
|
204
|
+
*/
|
|
205
|
+
function setGlobalLogFormat(format) {
|
|
206
|
+
container.options.format = format;
|
|
207
|
+
// Update existing loggers' log level with global level.
|
|
208
|
+
container.loggers.forEach(logger => {
|
|
209
|
+
logger.format = format;
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
exports.setGlobalLogFormat = setGlobalLogFormat;
|
|
213
|
+
/**
|
|
214
|
+
* Get the global log format of the container.
|
|
215
|
+
* @returns The global log format, or `undefined` when not defined.
|
|
216
|
+
*/
|
|
217
|
+
function getGlobalLogFormat() {
|
|
218
|
+
return container.options.format;
|
|
219
|
+
}
|
|
220
|
+
exports.getGlobalLogFormat = getGlobalLogFormat;
|
|
164
221
|
const defaultSensitiveKeys = [
|
|
165
222
|
'access_token',
|
|
166
223
|
'authentication',
|
|
@@ -213,4 +270,18 @@ function getMessageContext(logger) {
|
|
|
213
270
|
return loggerOptions.defaultMeta.custom_fields.messageContext;
|
|
214
271
|
}
|
|
215
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Reset all the custom log levels for loggers and message context.
|
|
275
|
+
*/
|
|
276
|
+
function resetCustomLogLevels() {
|
|
277
|
+
Object.keys(customLogLevels).forEach(key => delete customLogLevels[key]);
|
|
278
|
+
}
|
|
279
|
+
exports.resetCustomLogLevels = resetCustomLogLevels;
|
|
280
|
+
/**
|
|
281
|
+
* Reset all the custom log formats for loggers and message context.
|
|
282
|
+
*/
|
|
283
|
+
function resetCustomLogFormats() {
|
|
284
|
+
Object.keys(customLogFormats).forEach(key => delete customLogFormats[key]);
|
|
285
|
+
}
|
|
286
|
+
exports.resetCustomLogFormats = resetCustomLogFormats;
|
|
216
287
|
//# sourceMappingURL=cloud-sdk-logger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-sdk-logger.js","sourceRoot":"","sources":["../../src/logger/cloud-sdk-logger.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cloud-sdk-logger.js","sourceRoot":"","sources":["../../src/logger/cloud-sdk-logger.ts"],"names":[],"mappings":";;;AACA,qCAKiB;AACjB,qCAAyC;AAEzC,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAC/C,MAAM,iBAAiB,GAAG,gCAAgC,CAAC;AAE3D,MAAM,SAAS,GAAG,IAAI,mBAAS,EAAE,CAAC;AAElC;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,MAAM,EAAN,eAAM;IACN,KAAK,EAAL,cAAK;CACN,CAAC;AAEF,uCAAuC;AACvC,SAAS,CAAC,OAAO,CAAC,MAAM;IACtB,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,iBAAS,CAAC,MAAM,CAAC,CAAC,CAAC,iBAAS,CAAC,KAAK,CAAC;AAE7E,MAAM,kBAAkB,GAAG,IAAI,oBAAU,CAAC,OAAO,EAAE,CAAC;AACpD,MAAM,eAAe,GAAG,EAA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AC,EAAE,CAAC,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7E,CAAC;AAFD,sDAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-cloud-sdk/util",
|
|
3
|
-
"version": "2.4.0",
|
|
3
|
+
"version": "2.4.1-20220525080946.0",
|
|
4
4
|
"description": "SAP Cloud SDK for JavaScript general utilities",
|
|
5
5
|
"homepage": "https://sap.github.io/cloud-sdk/docs/js/overview-cloud-sdk-for-javascript",
|
|
6
6
|
"license": "Apache-2.0",
|