@pristine-ts/logging 0.0.370 → 0.0.371
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/lib/cjs/handlers/breadcrumb.handler.js +32 -0
- package/dist/lib/cjs/handlers/breadcrumb.handler.js.map +1 -0
- package/dist/lib/cjs/handlers/handlers.js +1 -0
- package/dist/lib/cjs/handlers/handlers.js.map +1 -1
- package/dist/lib/cjs/handlers/log.handler.js +50 -34
- package/dist/lib/cjs/handlers/log.handler.js.map +1 -1
- package/dist/lib/cjs/interfaces/breadcrumb-handler.interface.js +3 -0
- package/dist/lib/cjs/interfaces/breadcrumb-handler.interface.js.map +1 -0
- package/dist/lib/cjs/interfaces/interfaces.js +1 -0
- package/dist/lib/cjs/interfaces/interfaces.js.map +1 -1
- package/dist/lib/cjs/logging.module.js +2 -1
- package/dist/lib/cjs/logging.module.js.map +1 -1
- package/dist/lib/cjs/models/breadcrumb.model.js +15 -0
- package/dist/lib/cjs/models/breadcrumb.model.js.map +1 -0
- package/dist/lib/cjs/models/log.model.js +10 -0
- package/dist/lib/cjs/models/log.model.js.map +1 -1
- package/dist/lib/cjs/models/models.js +1 -0
- package/dist/lib/cjs/models/models.js.map +1 -1
- package/dist/lib/cjs/types/log-highlights.type.js +3 -0
- package/dist/lib/cjs/types/log-highlights.type.js.map +1 -0
- package/dist/lib/cjs/types/types.js +18 -0
- package/dist/lib/cjs/types/types.js.map +1 -0
- package/dist/lib/esm/handlers/breadcrumb.handler.js +29 -0
- package/dist/lib/esm/handlers/breadcrumb.handler.js.map +1 -0
- package/dist/lib/esm/handlers/handlers.js +1 -0
- package/dist/lib/esm/handlers/handlers.js.map +1 -1
- package/dist/lib/esm/handlers/log.handler.js +50 -34
- package/dist/lib/esm/handlers/log.handler.js.map +1 -1
- package/dist/lib/esm/interfaces/breadcrumb-handler.interface.js +2 -0
- package/dist/lib/esm/interfaces/breadcrumb-handler.interface.js.map +1 -0
- package/dist/lib/esm/interfaces/interfaces.js +1 -0
- package/dist/lib/esm/interfaces/interfaces.js.map +1 -1
- package/dist/lib/esm/logging.module.js +2 -1
- package/dist/lib/esm/logging.module.js.map +1 -1
- package/dist/lib/esm/models/breadcrumb.model.js +11 -0
- package/dist/lib/esm/models/breadcrumb.model.js.map +1 -0
- package/dist/lib/esm/models/log.model.js +10 -0
- package/dist/lib/esm/models/log.model.js.map +1 -1
- package/dist/lib/esm/models/models.js +1 -0
- package/dist/lib/esm/models/models.js.map +1 -1
- package/dist/lib/esm/types/log-highlights.type.js +2 -0
- package/dist/lib/esm/types/log-highlights.type.js.map +1 -0
- package/dist/lib/esm/types/types.js +2 -0
- package/dist/lib/esm/types/types.js.map +1 -0
- package/dist/types/handlers/breadcrumb.handler.d.ts +7 -0
- package/dist/types/handlers/handlers.d.ts +1 -0
- package/dist/types/handlers/log.handler.d.ts +37 -23
- package/dist/types/interfaces/breadcrumb-handler.interface.d.ts +14 -0
- package/dist/types/interfaces/interfaces.d.ts +1 -0
- package/dist/types/interfaces/log-handler.interface.d.ts +35 -19
- package/dist/types/logging.module.d.ts +2 -1
- package/dist/types/models/breadcrumb.model.d.ts +15 -0
- package/dist/types/models/log.model.d.ts +13 -1
- package/dist/types/models/models.d.ts +1 -0
- package/dist/types/types/log-highlights.type.d.ts +3 -0
- package/dist/types/types/types.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.BreadcrumbHandler = void 0;
|
|
10
|
+
const logging_module_keyname_1 = require("../logging.module.keyname");
|
|
11
|
+
const tsyringe_1 = require("tsyringe");
|
|
12
|
+
const common_1 = require("@pristine-ts/common");
|
|
13
|
+
const breadcrumb_model_1 = require("../models/breadcrumb.model");
|
|
14
|
+
let BreadcrumbHandler = class BreadcrumbHandler {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.breadcrumbs = [];
|
|
17
|
+
}
|
|
18
|
+
add(message, extra) {
|
|
19
|
+
this.addBreadcrumb(new breadcrumb_model_1.BreadcrumbModel(message, extra));
|
|
20
|
+
}
|
|
21
|
+
addBreadcrumb(breadcrumb) {
|
|
22
|
+
this.breadcrumbs.push(breadcrumb);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.BreadcrumbHandler = BreadcrumbHandler;
|
|
26
|
+
exports.BreadcrumbHandler = BreadcrumbHandler = __decorate([
|
|
27
|
+
(0, common_1.moduleScoped)(logging_module_keyname_1.LoggingModuleKeyname),
|
|
28
|
+
(0, common_1.tag)("BreadcrumbHandlerInterface"),
|
|
29
|
+
(0, tsyringe_1.injectable)(),
|
|
30
|
+
(0, tsyringe_1.scoped)(tsyringe_1.Lifecycle.ContainerScoped)
|
|
31
|
+
], BreadcrumbHandler);
|
|
32
|
+
//# sourceMappingURL=breadcrumb.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.handler.js","sourceRoot":"","sources":["../../../../src/handlers/breadcrumb.handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA,sEAA+D;AAE/D,uCAAqF;AACrF,gDAM6B;AAC7B,iEAA2D;AAMpD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QACW,gBAAW,GAAsB,EAAE,CAAC;IAStD,CAAC;IAPC,GAAG,CAAC,OAAe,EAAE,KAAU;QAC7B,IAAI,CAAC,aAAa,CAAC,IAAI,kCAAe,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,aAAa,CAAC,UAA2B;QACvC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;CACF,CAAA;AAVY,8CAAiB;4BAAjB,iBAAiB;IAJ7B,IAAA,qBAAY,EAAC,6CAAoB,CAAC;IAClC,IAAA,YAAG,EAAC,4BAA4B,CAAC;IACjC,IAAA,qBAAU,GAAE;IACZ,IAAA,iBAAM,EAAC,oBAAS,CAAC,eAAe,CAAC;GACrB,iBAAiB,CAU7B"}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./breadcrumb.handler"), exports);
|
|
17
18
|
__exportStar(require("./log.handler"), exports);
|
|
18
19
|
//# sourceMappingURL=handlers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.js","sourceRoot":"","sources":["../../../../src/handlers/handlers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"handlers.js","sourceRoot":"","sources":["../../../../src/handlers/handlers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,gDAA8B"}
|
|
@@ -32,13 +32,15 @@ let LogHandler = class LogHandler {
|
|
|
32
32
|
* @param logSeverityLevelConfiguration The severity from which to start logging the logs.
|
|
33
33
|
* @param activateDiagnostics Whether or not the outputted logs should contain the diagnostic part. This is an intensive process and can dramatically reduce the performance of the code.
|
|
34
34
|
* @param kernelInstantiationId The id of instantiation of the kernel.
|
|
35
|
+
* @param breadcrumbHandler The Breadcrumb handler to get all the latest breadcrumbs.
|
|
35
36
|
* @param tracingContext The context of the tracing.
|
|
36
37
|
*/
|
|
37
|
-
constructor(loggers, logSeverityLevelConfiguration, activateDiagnostics, kernelInstantiationId, tracingContext) {
|
|
38
|
+
constructor(loggers, logSeverityLevelConfiguration, activateDiagnostics, kernelInstantiationId, breadcrumbHandler, tracingContext) {
|
|
38
39
|
this.loggers = loggers;
|
|
39
40
|
this.logSeverityLevelConfiguration = logSeverityLevelConfiguration;
|
|
40
41
|
this.activateDiagnostics = activateDiagnostics;
|
|
41
42
|
this.kernelInstantiationId = kernelInstantiationId;
|
|
43
|
+
this.breadcrumbHandler = breadcrumbHandler;
|
|
42
44
|
this.tracingContext = tracingContext;
|
|
43
45
|
}
|
|
44
46
|
/**
|
|
@@ -51,69 +53,78 @@ let LogHandler = class LogHandler {
|
|
|
51
53
|
}
|
|
52
54
|
/**
|
|
53
55
|
* Logs the message if the severity is set to critical or above.
|
|
54
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
55
56
|
* @param message The message to log.
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
57
|
+
* @param data The data being passed to the log
|
|
58
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
58
59
|
*/
|
|
59
|
-
critical(message,
|
|
60
|
-
return this.log(message, severity_enum_1.SeverityEnum.Critical,
|
|
60
|
+
critical(message, data, breadcrumb) {
|
|
61
|
+
return this.log(message, severity_enum_1.SeverityEnum.Critical, data, breadcrumb);
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* Logs the message if the severity is set to error or above.
|
|
64
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
65
65
|
* @param message The message to log.
|
|
66
|
-
* @param
|
|
67
|
-
* @param
|
|
66
|
+
* @param data The data being passed to the log
|
|
67
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
68
68
|
*/
|
|
69
|
-
error(message,
|
|
70
|
-
return this.log(message, severity_enum_1.SeverityEnum.Error,
|
|
69
|
+
error(message, data, breadcrumb) {
|
|
70
|
+
return this.log(message, severity_enum_1.SeverityEnum.Error, data, breadcrumb);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Logs the message if the severity is set to warning or above.
|
|
74
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
75
74
|
* @param message The message to log.
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
75
|
+
* @param data The data being passed to the log
|
|
76
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
78
77
|
*/
|
|
79
|
-
warning(message,
|
|
80
|
-
return this.log(message, severity_enum_1.SeverityEnum.Warning,
|
|
78
|
+
warning(message, data, breadcrumb) {
|
|
79
|
+
return this.log(message, severity_enum_1.SeverityEnum.Warning, data, breadcrumb);
|
|
81
80
|
}
|
|
82
81
|
/**
|
|
83
82
|
* Logs the message if the severity is set to info or above.
|
|
84
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
85
83
|
* @param message The message to log.
|
|
86
|
-
* @param
|
|
87
|
-
* @param
|
|
84
|
+
* @param data The data being passed to the log
|
|
85
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
88
86
|
*/
|
|
89
|
-
info(message,
|
|
90
|
-
return this.log(message, severity_enum_1.SeverityEnum.Info,
|
|
87
|
+
info(message, data, breadcrumb) {
|
|
88
|
+
return this.log(message, severity_enum_1.SeverityEnum.Info, data, breadcrumb);
|
|
91
89
|
}
|
|
92
90
|
/**
|
|
93
91
|
* Logs the message if the severity is set to debug or above.
|
|
94
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
95
92
|
* @param message The message to log.
|
|
96
|
-
* @param
|
|
97
|
-
* @param
|
|
93
|
+
* @param data The data being passed to the log
|
|
94
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
98
95
|
*/
|
|
99
|
-
debug(message,
|
|
100
|
-
return this.log(message, severity_enum_1.SeverityEnum.Debug,
|
|
96
|
+
debug(message, data, breadcrumb) {
|
|
97
|
+
return this.log(message, severity_enum_1.SeverityEnum.Debug, data, breadcrumb);
|
|
101
98
|
}
|
|
102
99
|
/**
|
|
103
100
|
* Logs the message based on the severity.
|
|
104
101
|
* @param message The message to log.
|
|
105
102
|
* @param severity The minimum severity to log.
|
|
106
|
-
* @param
|
|
107
|
-
* @param
|
|
103
|
+
* @param data The data being passed to the log
|
|
104
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
108
105
|
*/
|
|
109
|
-
log(message, severity
|
|
110
|
-
var _a;
|
|
106
|
+
log(message, severity, data, breadcrumb) {
|
|
107
|
+
var _a, _b;
|
|
111
108
|
const log = new log_model_1.LogModel(severity, message);
|
|
112
109
|
log.kernelInstantiationId = this.kernelInstantiationId;
|
|
113
110
|
log.traceId = this.tracingContext.traceId;
|
|
114
|
-
log.extra = extra;
|
|
115
|
-
log.module = module;
|
|
116
111
|
log.date = new Date();
|
|
112
|
+
if (breadcrumb) {
|
|
113
|
+
this.breadcrumbHandler.add(breadcrumb);
|
|
114
|
+
}
|
|
115
|
+
log.breadcrumbs = this.breadcrumbHandler.breadcrumbs;
|
|
116
|
+
// Handle the data parameter to extract highlights and extra information.
|
|
117
|
+
if (data) {
|
|
118
|
+
// Check if data is in the structured format { highlights, extra }
|
|
119
|
+
if (typeof data === 'object' && data !== null && !Array.isArray(data) && (data.hasOwnProperty('highlights') || data.hasOwnProperty('extra'))) {
|
|
120
|
+
log.highlights = (_a = data.highlights) !== null && _a !== void 0 ? _a : {};
|
|
121
|
+
log.extra = data.extra;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
// Otherwise, treat the entire data object as 'extra'
|
|
125
|
+
log.extra = data;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
117
128
|
// If the activateDiagnostics configuration is set to true, we will include additional information into a __diagnostics path into extra.
|
|
118
129
|
// This is an intensive process so be careful, it will dramatically slow down your calls.
|
|
119
130
|
if (this.activateDiagnostics) {
|
|
@@ -127,12 +138,16 @@ let LogHandler = class LogHandler {
|
|
|
127
138
|
diagnostics.lastStackTrace = stackTrace;
|
|
128
139
|
break;
|
|
129
140
|
}
|
|
141
|
+
// Ensure log.extra is an object before adding diagnostics
|
|
142
|
+
if (typeof log.extra !== 'object' || log.extra === null) {
|
|
143
|
+
log.extra = { originalData: log.extra };
|
|
144
|
+
}
|
|
130
145
|
log.extra["__diagnostics"] = diagnostics;
|
|
131
146
|
}
|
|
132
147
|
// Log in every logger that is activated.
|
|
133
148
|
for (const logger of this.loggers) {
|
|
134
149
|
if (logger.isActive()) {
|
|
135
|
-
(
|
|
150
|
+
(_b = logger.readableStream) === null || _b === void 0 ? void 0 : _b.push(log);
|
|
136
151
|
}
|
|
137
152
|
}
|
|
138
153
|
}
|
|
@@ -147,6 +162,7 @@ exports.LogHandler = LogHandler = __decorate([
|
|
|
147
162
|
__param(1, (0, tsyringe_1.inject)("%pristine.logging.logSeverityLevelConfiguration%")),
|
|
148
163
|
__param(2, (0, tsyringe_1.inject)("%pristine.logging.activateDiagnostics%")),
|
|
149
164
|
__param(3, (0, tsyringe_1.inject)(common_1.InternalContainerParameterEnum.KernelInstantiationId)),
|
|
150
|
-
|
|
165
|
+
__param(4, (0, tsyringe_1.inject)("BreadcrumbHandlerInterface")),
|
|
166
|
+
__metadata("design:paramtypes", [Array, Number, Boolean, String, Object, common_1.TracingContext])
|
|
151
167
|
], LogHandler);
|
|
152
168
|
//# sourceMappingURL=log.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.handler.js","sourceRoot":"","sources":["../../../../src/handlers/log.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4BAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"log.handler.js","sourceRoot":"","sources":["../../../../src/handlers/log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JtB,IAAA,qBAAY,EAAC,qCAAoB,CAAC;IAClC,IAAA,YAAG,EAAC,qBAAqB,CAAC;IAC1B,IAAA,qBAAU,GAAE;IACZ,IAAA,iBAAM,EAAC,oBAAS,CAAC,eAAe,CAAC;IAYZ,WAAA,IAAA,oBAAS,EAAC,iCAAwB,CAAC,MAAM,CAAC,CAAA;IAC1C,WAAA,IAAA,iBAAM,EAAC,kDAAkD,CAAC,CAAA;IAC1D,WAAA,IAAA,iBAAM,EAAC,wCAAwC,CAAC,CAAA;IAChD,WAAA,IAAA,iBAAM,EAAC,uCAA8B,CAAC,qBAAqB,CAAC,CAAA;IAC5D,WAAA,IAAA,iBAAM,EAAC,4BAA4B,CAAC,CAAA;6EACJ,uBAAc;GAhBvD,UAAU,CA4ItB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb-handler.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/breadcrumb-handler.interface.ts"],"names":[],"mappings":""}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./breadcrumb-handler.interface"), exports);
|
|
17
18
|
__exportStar(require("./logger.interface"), exports);
|
|
18
19
|
__exportStar(require("./log-handler.interface"), exports);
|
|
19
20
|
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/interfaces/interfaces.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/interfaces/interfaces.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,qDAAmC;AACnC,0DAAwC"}
|
|
@@ -24,9 +24,10 @@ __exportStar(require("./enums/enums"), exports);
|
|
|
24
24
|
__exportStar(require("./interfaces/interfaces"), exports);
|
|
25
25
|
__exportStar(require("./loggers/loggers"), exports);
|
|
26
26
|
__exportStar(require("./models/models"), exports);
|
|
27
|
-
__exportStar(require("./utils/utils"), exports);
|
|
28
27
|
__exportStar(require("./logging.module.keyname"), exports);
|
|
29
28
|
__exportStar(require("./handlers/handlers"), exports);
|
|
29
|
+
__exportStar(require("./types/types"), exports);
|
|
30
|
+
__exportStar(require("./utils/utils"), exports);
|
|
30
31
|
exports.LoggingModule = {
|
|
31
32
|
keyname: logging_module_keyname_1.LoggingModuleKeyname,
|
|
32
33
|
configurationDefinitions: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.module.js","sourceRoot":"","sources":["../../../src/logging.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qEAA8D;AAC9D,8DAKoC;AACpC,+DAAwD;AACxD,gDAAiD;AACjD,yDAAmD;AAEnD,gDAA8B;AAC9B,0DAAwC;AACxC,oDAAkC;AAClC,kDAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"logging.module.js","sourceRoot":"","sources":["../../../src/logging.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qEAA8D;AAC9D,8DAKoC;AACpC,+DAAwD;AACxD,gDAAiD;AACjD,yDAAmD;AAEnD,gDAA8B;AAC9B,0DAAwC;AACxC,oDAAkC;AAClC,kDAAgC;AAChC,2DAAyC;AACzC,sDAAoC;AACpC,gDAA8B;AAC9B,gDAA8B;AAGjB,QAAA,aAAa,GAAoB;IAC1C,OAAO,EAAE,6CAAoB;IAC7B,wBAAwB,EAAE;QACtB;;WAEG;QACH;YACI,aAAa,EAAE,6CAAoB,GAAG,sBAAsB;YAC5D,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,EAAE;YAChB,gBAAgB,EAA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D,YAAY,EAAE,KAAK;YACnB,UAAU,EAAE,KAAK;YACjB,gBAAgB,EAAE;gBACd,IAAI,+BAAe,CAAC,IAAI,2CAA2B,CAAC,qCAAqC,CAAC,CAAC;aAC9F;SACJ;QACD;;;;WAIG;QACH;YACI,aAAa,EAAE,6CAAoB,GAAG,sBAAsB;YAC5D,YAAY,EAAE,KAAK;YACnB,UAAU,EAAE,KAAK;YACjB,gBAAgB,EAAE;gBACd,IAAI,+BAAe,CAAC,IAAI,2CAA2B,CAAC,uCAAuC,CAAC,CAAC;aAChG;SACJ;QACD;;;;WAIG;QACH;YACI,aAAa,EAAE,6CAAoB,GAAG,uBAAuB;YAC7D,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,KAAK;YACjB,gBAAgB,EAAE;gBACd,IAAI,8BAAc,CAAC,IAAI,2CAA2B,CAAC,0CAA0C,CAAC,CAAC;aAClG;SACJ;KACJ;IACD,aAAa,EAAE;QACX,qBAAY;QACZ,mCAAmB;KACtB;IACD,qBAAqB,EAAE,EAAE;CAC5B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BreadcrumbModel = void 0;
|
|
4
|
+
class BreadcrumbModel {
|
|
5
|
+
constructor(message, extra) {
|
|
6
|
+
/**
|
|
7
|
+
* The date at which the breadcrumb was created.
|
|
8
|
+
*/
|
|
9
|
+
this.date = new Date();
|
|
10
|
+
this.message = message;
|
|
11
|
+
this.extra = extra;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.BreadcrumbModel = BreadcrumbModel;
|
|
15
|
+
//# sourceMappingURL=breadcrumb.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.model.js","sourceRoot":"","sources":["../../../../src/models/breadcrumb.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;IAgB1B,YACE,OAAe,EACf,KAAW;QAjBb;;WAEG;QACH,SAAI,GAAS,IAAI,IAAI,EAAE,CAAC;QAgBtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAvBD,0CAuBC"}
|
|
@@ -20,8 +20,18 @@ class LogModel {
|
|
|
20
20
|
/**
|
|
21
21
|
* The module from which the log originated.
|
|
22
22
|
* By default it will be the application module.
|
|
23
|
+
* @deprecated: Use breadcrumbs instead.
|
|
23
24
|
*/
|
|
24
25
|
this.module = "application";
|
|
26
|
+
/**
|
|
27
|
+
* The list of breadcrumbs that led to this log.
|
|
28
|
+
*/
|
|
29
|
+
this.breadcrumbs = [];
|
|
30
|
+
/**
|
|
31
|
+
* This is an object that is data that you want to "highlights" and show as logs. Select and be careful about what
|
|
32
|
+
* you choose to highlight to avoid showing to many useless things.
|
|
33
|
+
*/
|
|
34
|
+
this.highlights = {};
|
|
25
35
|
}
|
|
26
36
|
}
|
|
27
37
|
exports.LogModel = LogModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.model.js","sourceRoot":"","sources":["../../../../src/models/log.model.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"log.model.js","sourceRoot":"","sources":["../../../../src/models/log.model.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACH,MAAa,QAAQ;IAuCnB;;;;OAIG;IACH,YAAmB,QAAsB,EAAS,OAAe;QAA9C,aAAQ,GAAR,QAAQ,CAAc;QAAS,YAAO,GAAP,OAAO,CAAQ;QAjCjE;;WAEG;QACH,SAAI,GAAS,IAAI,IAAI,EAAE,CAAC;QAExB;;;;WAIG;QACH,WAAM,GAAW,aAAa,CAAC;QAO/B;;WAEG;QACH,gBAAW,GAAsB,EAAE,CAAC;QAEpC;;;WAGG;QACH,eAAU,GAAkB,EAAE,CAAC;IAQ/B,CAAC;CAEF;AA/CD,4BA+CC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./breadcrumb.model"), exports);
|
|
17
18
|
__exportStar(require("./diagnostics.model"), exports);
|
|
18
19
|
__exportStar(require("./log.model"), exports);
|
|
19
20
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/models.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/models.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC;AACpC,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-highlights.type.js","sourceRoot":"","sources":["../../../../src/types/log-highlights.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./log-highlights.type"), exports);
|
|
18
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAqC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LoggingModuleKeyname } from "../logging.module.keyname";
|
|
8
|
+
import { injectable, scoped, Lifecycle } from "tsyringe";
|
|
9
|
+
import { tag, moduleScoped } from "@pristine-ts/common";
|
|
10
|
+
import { BreadcrumbModel } from "../models/breadcrumb.model";
|
|
11
|
+
let BreadcrumbHandler = class BreadcrumbHandler {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.breadcrumbs = [];
|
|
14
|
+
}
|
|
15
|
+
add(message, extra) {
|
|
16
|
+
this.addBreadcrumb(new BreadcrumbModel(message, extra));
|
|
17
|
+
}
|
|
18
|
+
addBreadcrumb(breadcrumb) {
|
|
19
|
+
this.breadcrumbs.push(breadcrumb);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
BreadcrumbHandler = __decorate([
|
|
23
|
+
moduleScoped(LoggingModuleKeyname),
|
|
24
|
+
tag("BreadcrumbHandlerInterface"),
|
|
25
|
+
injectable(),
|
|
26
|
+
scoped(Lifecycle.ContainerScoped)
|
|
27
|
+
], BreadcrumbHandler);
|
|
28
|
+
export { BreadcrumbHandler };
|
|
29
|
+
//# sourceMappingURL=breadcrumb.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.handler.js","sourceRoot":"","sources":["../../../../src/handlers/breadcrumb.handler.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAC,UAAU,EAAgC,MAAM,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AACrF,OAAO,EAEL,GAAG,EAGH,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAMpD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QACW,gBAAW,GAAsB,EAAE,CAAC;IAStD,CAAC;IAPC,GAAG,CAAC,OAAe,EAAE,KAAU;QAC7B,IAAI,CAAC,aAAa,CAAC,IAAI,eAAe,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,aAAa,CAAC,UAA2B;QACvC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;CACF,CAAA;AAVY,iBAAiB;IAJ7B,YAAY,CAAC,oBAAoB,CAAC;IAClC,GAAG,CAAC,4BAA4B,CAAC;IACjC,UAAU,EAAE;IACZ,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC;GACrB,iBAAiB,CAU7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.js","sourceRoot":"","sources":["../../../../src/handlers/handlers.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"handlers.js","sourceRoot":"","sources":["../../../../src/handlers/handlers.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
|
|
@@ -29,13 +29,15 @@ let LogHandler = class LogHandler {
|
|
|
29
29
|
* @param logSeverityLevelConfiguration The severity from which to start logging the logs.
|
|
30
30
|
* @param activateDiagnostics Whether or not the outputted logs should contain the diagnostic part. This is an intensive process and can dramatically reduce the performance of the code.
|
|
31
31
|
* @param kernelInstantiationId The id of instantiation of the kernel.
|
|
32
|
+
* @param breadcrumbHandler The Breadcrumb handler to get all the latest breadcrumbs.
|
|
32
33
|
* @param tracingContext The context of the tracing.
|
|
33
34
|
*/
|
|
34
|
-
constructor(loggers, logSeverityLevelConfiguration, activateDiagnostics, kernelInstantiationId, tracingContext) {
|
|
35
|
+
constructor(loggers, logSeverityLevelConfiguration, activateDiagnostics, kernelInstantiationId, breadcrumbHandler, tracingContext) {
|
|
35
36
|
this.loggers = loggers;
|
|
36
37
|
this.logSeverityLevelConfiguration = logSeverityLevelConfiguration;
|
|
37
38
|
this.activateDiagnostics = activateDiagnostics;
|
|
38
39
|
this.kernelInstantiationId = kernelInstantiationId;
|
|
40
|
+
this.breadcrumbHandler = breadcrumbHandler;
|
|
39
41
|
this.tracingContext = tracingContext;
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
@@ -48,69 +50,78 @@ let LogHandler = class LogHandler {
|
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
52
|
* Logs the message if the severity is set to critical or above.
|
|
51
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
52
53
|
* @param message The message to log.
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
54
|
+
* @param data The data being passed to the log
|
|
55
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
55
56
|
*/
|
|
56
|
-
critical(message,
|
|
57
|
-
return this.log(message, SeverityEnum.Critical,
|
|
57
|
+
critical(message, data, breadcrumb) {
|
|
58
|
+
return this.log(message, SeverityEnum.Critical, data, breadcrumb);
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* Logs the message if the severity is set to error or above.
|
|
61
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
62
62
|
* @param message The message to log.
|
|
63
|
-
* @param
|
|
64
|
-
* @param
|
|
63
|
+
* @param data The data being passed to the log
|
|
64
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
65
65
|
*/
|
|
66
|
-
error(message,
|
|
67
|
-
return this.log(message, SeverityEnum.Error,
|
|
66
|
+
error(message, data, breadcrumb) {
|
|
67
|
+
return this.log(message, SeverityEnum.Error, data, breadcrumb);
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Logs the message if the severity is set to warning or above.
|
|
71
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
72
71
|
* @param message The message to log.
|
|
73
|
-
* @param
|
|
74
|
-
* @param
|
|
72
|
+
* @param data The data being passed to the log
|
|
73
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
75
74
|
*/
|
|
76
|
-
warning(message,
|
|
77
|
-
return this.log(message, SeverityEnum.Warning,
|
|
75
|
+
warning(message, data, breadcrumb) {
|
|
76
|
+
return this.log(message, SeverityEnum.Warning, data, breadcrumb);
|
|
78
77
|
}
|
|
79
78
|
/**
|
|
80
79
|
* Logs the message if the severity is set to info or above.
|
|
81
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
82
80
|
* @param message The message to log.
|
|
83
|
-
* @param
|
|
84
|
-
* @param
|
|
81
|
+
* @param data The data being passed to the log
|
|
82
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
85
83
|
*/
|
|
86
|
-
info(message,
|
|
87
|
-
return this.log(message, SeverityEnum.Info,
|
|
84
|
+
info(message, data, breadcrumb) {
|
|
85
|
+
return this.log(message, SeverityEnum.Info, data, breadcrumb);
|
|
88
86
|
}
|
|
89
87
|
/**
|
|
90
88
|
* Logs the message if the severity is set to debug or above.
|
|
91
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
92
89
|
* @param message The message to log.
|
|
93
|
-
* @param
|
|
94
|
-
* @param
|
|
90
|
+
* @param data The data being passed to the log
|
|
91
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
95
92
|
*/
|
|
96
|
-
debug(message,
|
|
97
|
-
return this.log(message, SeverityEnum.Debug,
|
|
93
|
+
debug(message, data, breadcrumb) {
|
|
94
|
+
return this.log(message, SeverityEnum.Debug, data, breadcrumb);
|
|
98
95
|
}
|
|
99
96
|
/**
|
|
100
97
|
* Logs the message based on the severity.
|
|
101
98
|
* @param message The message to log.
|
|
102
99
|
* @param severity The minimum severity to log.
|
|
103
|
-
* @param
|
|
104
|
-
* @param
|
|
100
|
+
* @param data The data being passed to the log
|
|
101
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
105
102
|
*/
|
|
106
|
-
log(message, severity
|
|
107
|
-
var _a;
|
|
103
|
+
log(message, severity, data, breadcrumb) {
|
|
104
|
+
var _a, _b;
|
|
108
105
|
const log = new LogModel(severity, message);
|
|
109
106
|
log.kernelInstantiationId = this.kernelInstantiationId;
|
|
110
107
|
log.traceId = this.tracingContext.traceId;
|
|
111
|
-
log.extra = extra;
|
|
112
|
-
log.module = module;
|
|
113
108
|
log.date = new Date();
|
|
109
|
+
if (breadcrumb) {
|
|
110
|
+
this.breadcrumbHandler.add(breadcrumb);
|
|
111
|
+
}
|
|
112
|
+
log.breadcrumbs = this.breadcrumbHandler.breadcrumbs;
|
|
113
|
+
// Handle the data parameter to extract highlights and extra information.
|
|
114
|
+
if (data) {
|
|
115
|
+
// Check if data is in the structured format { highlights, extra }
|
|
116
|
+
if (typeof data === 'object' && data !== null && !Array.isArray(data) && (data.hasOwnProperty('highlights') || data.hasOwnProperty('extra'))) {
|
|
117
|
+
log.highlights = (_a = data.highlights) !== null && _a !== void 0 ? _a : {};
|
|
118
|
+
log.extra = data.extra;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
// Otherwise, treat the entire data object as 'extra'
|
|
122
|
+
log.extra = data;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
114
125
|
// If the activateDiagnostics configuration is set to true, we will include additional information into a __diagnostics path into extra.
|
|
115
126
|
// This is an intensive process so be careful, it will dramatically slow down your calls.
|
|
116
127
|
if (this.activateDiagnostics) {
|
|
@@ -124,12 +135,16 @@ let LogHandler = class LogHandler {
|
|
|
124
135
|
diagnostics.lastStackTrace = stackTrace;
|
|
125
136
|
break;
|
|
126
137
|
}
|
|
138
|
+
// Ensure log.extra is an object before adding diagnostics
|
|
139
|
+
if (typeof log.extra !== 'object' || log.extra === null) {
|
|
140
|
+
log.extra = { originalData: log.extra };
|
|
141
|
+
}
|
|
127
142
|
log.extra["__diagnostics"] = diagnostics;
|
|
128
143
|
}
|
|
129
144
|
// Log in every logger that is activated.
|
|
130
145
|
for (const logger of this.loggers) {
|
|
131
146
|
if (logger.isActive()) {
|
|
132
|
-
(
|
|
147
|
+
(_b = logger.readableStream) === null || _b === void 0 ? void 0 : _b.push(log);
|
|
133
148
|
}
|
|
134
149
|
}
|
|
135
150
|
}
|
|
@@ -143,7 +158,8 @@ LogHandler = __decorate([
|
|
|
143
158
|
__param(1, inject("%pristine.logging.logSeverityLevelConfiguration%")),
|
|
144
159
|
__param(2, inject("%pristine.logging.activateDiagnostics%")),
|
|
145
160
|
__param(3, inject(InternalContainerParameterEnum.KernelInstantiationId)),
|
|
146
|
-
|
|
161
|
+
__param(4, inject("BreadcrumbHandlerInterface")),
|
|
162
|
+
__metadata("design:paramtypes", [Array, Number, Boolean, String, Object, TracingContext])
|
|
147
163
|
], LogHandler);
|
|
148
164
|
export { LogHandler };
|
|
149
165
|
//# sourceMappingURL=log.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.handler.js","sourceRoot":"","sources":["../../../../src/handlers/log.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAA;AACzB,OAAO,EAAC,UAAU,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"log.handler.js","sourceRoot":"","sources":["../../../../src/handlers/log.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAA;AACzB,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EACL,wBAAwB,EACxB,GAAG,EACH,cAAc,EACd,8BAA8B,EAC9B,YAAY,EACb,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAGvD;;;;GAIG;AAKI,IAAM,UAAU,GAAhB,MAAM,UAAU;IAErB;;;;;;;;OAQG;IACH,YAAgF,OAA0B,EACV,6BAAqC,EAC/C,mBAA4B,EAChB,qBAA6B,EACrD,iBAA6C,EACnF,cAA8B;QALc,YAAO,GAAP,OAAO,CAAmB;QACV,kCAA6B,GAA7B,6BAA6B,CAAQ;QAC/C,wBAAmB,GAAnB,mBAAmB,CAAS;QAChB,0BAAqB,GAArB,qBAAqB,CAAQ;QACrD,sBAAiB,GAAjB,iBAAiB,CAA4B;QACnF,mBAAc,GAAd,cAAc,CAAgB;IAClE,CAAC;IAED;;OAEG;IACH,SAAS;QACP,IAAI,CAAC,OAAO,CAAC,OAAO,CAAE,CAAC,MAAuB,EAAE,EAAE;YAChD,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;;;;OAKG;IACI,QAAQ,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,CAAC,KAAK,KAAK,QAAQ,IAAI,GAAG,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;gBACxD,GAAG,CAAC,KAAK,GAAG,EAAE,YAAY,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;YAC1C,CAAC;YAED,GAAG,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,WAAW,CAAC;QAC3C,CAAC;QAED,yCAAyC;QACzC,KAAI,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,EAAC,CAAC;YAChC,IAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;gBACrB,MAAA,MAAM,CAAC,cAAc,0CAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YACnC,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AA5IY,UAAU;IAJtB,YAAY,CAAC,oBAAoB,CAAC;IAClC,GAAG,CAAC,qBAAqB,CAAC;IAC1B,UAAU,EAAE;IACZ,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC;IAYZ,WAAA,SAAS,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAA;IAC1C,WAAA,MAAM,CAAC,kDAAkD,CAAC,CAAA;IAC1D,WAAA,MAAM,CAAC,wCAAwC,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,8BAA8B,CAAC,qBAAqB,CAAC,CAAA;IAC5D,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;6EACJ,cAAc;GAhBvD,UAAU,CA4ItB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb-handler.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/breadcrumb-handler.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/interfaces/interfaces.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/interfaces/interfaces.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
|
|
@@ -7,9 +7,10 @@ export * from "./enums/enums";
|
|
|
7
7
|
export * from "./interfaces/interfaces";
|
|
8
8
|
export * from "./loggers/loggers";
|
|
9
9
|
export * from "./models/models";
|
|
10
|
-
export * from "./utils/utils";
|
|
11
10
|
export * from "./logging.module.keyname";
|
|
12
11
|
export * from "./handlers/handlers";
|
|
12
|
+
export * from "./types/types";
|
|
13
|
+
export * from "./utils/utils";
|
|
13
14
|
export const LoggingModule = {
|
|
14
15
|
keyname: LoggingModuleKeyname,
|
|
15
16
|
configurationDefinitions: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.module.js","sourceRoot":"","sources":["../../../src/logging.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACH,eAAe,EACf,mBAAmB,EAAE,YAAY,EACjC,2BAA2B,EAC3B,cAAc,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAEnD,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"logging.module.js","sourceRoot":"","sources":["../../../src/logging.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACH,eAAe,EACf,mBAAmB,EAAE,YAAY,EACjC,2BAA2B,EAC3B,cAAc,EACjB,MAAM,4BAA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|
|
|
1
|
+
{"version":3,"file":"breadcrumb.model.js","sourceRoot":"","sources":["../../../../src/models/breadcrumb.model.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,eAAe;IAgB1B,YACE,OAAe,EACf,KAAW;QAjBb;;WAEG;QACH,SAAI,GAAS,IAAI,IAAI,EAAE,CAAC;QAgBtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -17,8 +17,18 @@ export class LogModel {
|
|
|
17
17
|
/**
|
|
18
18
|
* The module from which the log originated.
|
|
19
19
|
* By default it will be the application module.
|
|
20
|
+
* @deprecated: Use breadcrumbs instead.
|
|
20
21
|
*/
|
|
21
22
|
this.module = "application";
|
|
23
|
+
/**
|
|
24
|
+
* The list of breadcrumbs that led to this log.
|
|
25
|
+
*/
|
|
26
|
+
this.breadcrumbs = [];
|
|
27
|
+
/**
|
|
28
|
+
* This is an object that is data that you want to "highlights" and show as logs. Select and be careful about what
|
|
29
|
+
* you choose to highlight to avoid showing to many useless things.
|
|
30
|
+
*/
|
|
31
|
+
this.highlights = {};
|
|
22
32
|
}
|
|
23
33
|
}
|
|
24
34
|
//# sourceMappingURL=log.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.model.js","sourceRoot":"","sources":["../../../../src/models/log.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log.model.js","sourceRoot":"","sources":["../../../../src/models/log.model.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,OAAO,QAAQ;IAuCnB;;;;OAIG;IACH,YAAmB,QAAsB,EAAS,OAAe;QAA9C,aAAQ,GAAR,QAAQ,CAAc;QAAS,YAAO,GAAP,OAAO,CAAQ;QAjCjE;;WAEG;QACH,SAAI,GAAS,IAAI,IAAI,EAAE,CAAC;QAExB;;;;WAIG;QACH,WAAM,GAAW,aAAa,CAAC;QAO/B;;WAEG;QACH,gBAAW,GAAsB,EAAE,CAAC;QAEpC;;;WAGG;QACH,eAAU,GAAkB,EAAE,CAAC;IAQ/B,CAAC;CAEF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/models.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/models.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-highlights.type.js","sourceRoot":"","sources":["../../../../src/types/log-highlights.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BreadcrumbHandlerInterface } from "../interfaces/breadcrumb-handler.interface";
|
|
2
|
+
import { BreadcrumbModel } from "../models/breadcrumb.model";
|
|
3
|
+
export declare class BreadcrumbHandler implements BreadcrumbHandlerInterface {
|
|
4
|
+
readonly breadcrumbs: BreadcrumbModel[];
|
|
5
|
+
add(message: string, extra?: any): void;
|
|
6
|
+
addBreadcrumb(breadcrumb: BreadcrumbModel): void;
|
|
7
|
+
}
|
|
@@ -2,6 +2,8 @@ import "reflect-metadata";
|
|
|
2
2
|
import { LoggerInterface } from "../interfaces/logger.interface";
|
|
3
3
|
import { TracingContext } from "@pristine-ts/common";
|
|
4
4
|
import { LogHandlerInterface } from "../interfaces/log-handler.interface";
|
|
5
|
+
import { BreadcrumbHandlerInterface } from "../interfaces/breadcrumb-handler.interface";
|
|
6
|
+
import { LogHighlights } from "../types/log-highlights.type";
|
|
5
7
|
/**
|
|
6
8
|
* The LogHandler to use when we want to output some logs.
|
|
7
9
|
* This handler makes sure that only the right level of logs are outputted, stacks logs, and logs with different loggers.
|
|
@@ -12,6 +14,7 @@ export declare class LogHandler implements LogHandlerInterface {
|
|
|
12
14
|
private readonly logSeverityLevelConfiguration;
|
|
13
15
|
private readonly activateDiagnostics;
|
|
14
16
|
private readonly kernelInstantiationId;
|
|
17
|
+
private readonly breadcrumbHandler;
|
|
15
18
|
private readonly tracingContext;
|
|
16
19
|
/**
|
|
17
20
|
* The LogHandler to use when we want to output some logs.
|
|
@@ -19,59 +22,70 @@ export declare class LogHandler implements LogHandlerInterface {
|
|
|
19
22
|
* @param logSeverityLevelConfiguration The severity from which to start logging the logs.
|
|
20
23
|
* @param activateDiagnostics Whether or not the outputted logs should contain the diagnostic part. This is an intensive process and can dramatically reduce the performance of the code.
|
|
21
24
|
* @param kernelInstantiationId The id of instantiation of the kernel.
|
|
25
|
+
* @param breadcrumbHandler The Breadcrumb handler to get all the latest breadcrumbs.
|
|
22
26
|
* @param tracingContext The context of the tracing.
|
|
23
27
|
*/
|
|
24
|
-
constructor(loggers: LoggerInterface[], logSeverityLevelConfiguration: number, activateDiagnostics: boolean, kernelInstantiationId: string, tracingContext: TracingContext);
|
|
28
|
+
constructor(loggers: LoggerInterface[], logSeverityLevelConfiguration: number, activateDiagnostics: boolean, kernelInstantiationId: string, breadcrumbHandler: BreadcrumbHandlerInterface, tracingContext: TracingContext);
|
|
25
29
|
/**
|
|
26
30
|
* This method terminates the loggers.
|
|
27
31
|
*/
|
|
28
32
|
terminate(): void;
|
|
29
33
|
/**
|
|
30
34
|
* Logs the message if the severity is set to critical or above.
|
|
31
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
32
35
|
* @param message The message to log.
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
36
|
+
* @param data The data being passed to the log
|
|
37
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
35
38
|
*/
|
|
36
|
-
critical(message: string,
|
|
39
|
+
critical(message: string, data?: {
|
|
40
|
+
highlights?: LogHighlights;
|
|
41
|
+
extra?: any;
|
|
42
|
+
} | any, breadcrumb?: string): void;
|
|
37
43
|
/**
|
|
38
44
|
* Logs the message if the severity is set to error or above.
|
|
39
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
40
45
|
* @param message The message to log.
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
46
|
+
* @param data The data being passed to the log
|
|
47
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
43
48
|
*/
|
|
44
|
-
error(message: string,
|
|
49
|
+
error(message: string, data?: {
|
|
50
|
+
highlights?: LogHighlights;
|
|
51
|
+
extra?: any;
|
|
52
|
+
} | any, breadcrumb?: string): void;
|
|
45
53
|
/**
|
|
46
54
|
* Logs the message if the severity is set to warning or above.
|
|
47
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
48
55
|
* @param message The message to log.
|
|
49
|
-
* @param
|
|
50
|
-
* @param
|
|
56
|
+
* @param data The data being passed to the log
|
|
57
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
51
58
|
*/
|
|
52
|
-
warning(message: string,
|
|
59
|
+
warning(message: string, data?: {
|
|
60
|
+
highlights?: LogHighlights;
|
|
61
|
+
extra?: any;
|
|
62
|
+
} | any, breadcrumb?: string): void;
|
|
53
63
|
/**
|
|
54
64
|
* Logs the message if the severity is set to info or above.
|
|
55
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
56
65
|
* @param message The message to log.
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
66
|
+
* @param data The data being passed to the log
|
|
67
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
59
68
|
*/
|
|
60
|
-
info(message: string,
|
|
69
|
+
info(message: string, data?: {
|
|
70
|
+
highlights?: LogHighlights;
|
|
71
|
+
extra?: any;
|
|
72
|
+
} | any, breadcrumb?: string): void;
|
|
61
73
|
/**
|
|
62
74
|
* Logs the message if the severity is set to debug or above.
|
|
63
|
-
* This function is wrapper function for the log method with the proper severity to make it cleaner when using it in the code.
|
|
64
75
|
* @param message The message to log.
|
|
65
|
-
* @param
|
|
66
|
-
* @param
|
|
76
|
+
* @param data The data being passed to the log
|
|
77
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
67
78
|
*/
|
|
68
|
-
debug(message: string,
|
|
79
|
+
debug(message: string, data?: {
|
|
80
|
+
highlights?: LogHighlights;
|
|
81
|
+
extra?: any;
|
|
82
|
+
} | any, breadcrumb?: string): void;
|
|
69
83
|
/**
|
|
70
84
|
* Logs the message based on the severity.
|
|
71
85
|
* @param message The message to log.
|
|
72
86
|
* @param severity The minimum severity to log.
|
|
73
|
-
* @param
|
|
74
|
-
* @param
|
|
87
|
+
* @param data The data being passed to the log
|
|
88
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
75
89
|
*/
|
|
76
90
|
private log;
|
|
77
91
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BreadcrumbModel } from "../models/breadcrumb.model";
|
|
2
|
+
export interface BreadcrumbHandlerInterface {
|
|
3
|
+
/**
|
|
4
|
+
* The list of breadcrumbs that led to this point.
|
|
5
|
+
*/
|
|
6
|
+
breadcrumbs: BreadcrumbModel[];
|
|
7
|
+
/**
|
|
8
|
+
* Adds a new breadcrumb to the trail.
|
|
9
|
+
*
|
|
10
|
+
* @param message
|
|
11
|
+
* @param extra
|
|
12
|
+
*/
|
|
13
|
+
add(message: string, extra?: any): void;
|
|
14
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LogHighlights } from "../types/log-highlights.type";
|
|
1
2
|
/**
|
|
2
3
|
* This interface defines what functions should be implemented by a LogHandler.
|
|
3
4
|
* This interface is what should be injected when you want a LogHandler so that mocking can be done easier.
|
|
@@ -6,38 +7,53 @@ export interface LogHandlerInterface {
|
|
|
6
7
|
/**
|
|
7
8
|
* Logs the message if the severity is set to critical or above.
|
|
8
9
|
* @param message The message to log.
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
10
|
+
* @param data The data being passed to the log
|
|
11
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
11
12
|
*/
|
|
12
|
-
critical(message: string,
|
|
13
|
+
critical(message: string, data?: {
|
|
14
|
+
highlights?: LogHighlights;
|
|
15
|
+
extra?: any;
|
|
16
|
+
} | any, breadcrumb?: string): void;
|
|
13
17
|
/**
|
|
14
|
-
* Logs the message if the severity is set to
|
|
18
|
+
* Logs the message if the severity is set to error or above.
|
|
15
19
|
* @param message The message to log.
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
20
|
+
* @param data The data being passed to the log
|
|
21
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
18
22
|
*/
|
|
19
|
-
error(message: string,
|
|
23
|
+
error(message: string, data?: {
|
|
24
|
+
highlights?: LogHighlights;
|
|
25
|
+
extra?: any;
|
|
26
|
+
} | any, breadcrumb?: string): void;
|
|
20
27
|
/**
|
|
21
|
-
* Logs the message if the severity is set to
|
|
28
|
+
* Logs the message if the severity is set to warning or above.
|
|
22
29
|
* @param message The message to log.
|
|
23
|
-
* @param
|
|
24
|
-
* @param
|
|
30
|
+
* @param data The data being passed to the log
|
|
31
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
25
32
|
*/
|
|
26
|
-
warning(message: string,
|
|
33
|
+
warning(message: string, data?: {
|
|
34
|
+
highlights?: LogHighlights;
|
|
35
|
+
extra?: any;
|
|
36
|
+
} | any, breadcrumb?: string): void;
|
|
27
37
|
/**
|
|
28
|
-
* Logs the message if the severity is set to
|
|
38
|
+
* Logs the message if the severity is set to info or above.
|
|
29
39
|
* @param message The message to log.
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
40
|
+
* @param data The data being passed to the log
|
|
41
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
32
42
|
*/
|
|
33
|
-
info(message: string,
|
|
43
|
+
info(message: string, data?: {
|
|
44
|
+
highlights?: LogHighlights;
|
|
45
|
+
extra?: any;
|
|
46
|
+
} | any, breadcrumb?: string): void;
|
|
34
47
|
/**
|
|
35
|
-
* Logs the message if the severity is set to
|
|
48
|
+
* Logs the message if the severity is set to debug or above.
|
|
36
49
|
* @param message The message to log.
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
50
|
+
* @param data The data being passed to the log
|
|
51
|
+
* @param breadcrumb The breadcrumb passed to the log to identify where the error originated from.
|
|
39
52
|
*/
|
|
40
|
-
debug(message: string,
|
|
53
|
+
debug(message: string, data?: {
|
|
54
|
+
highlights?: LogHighlights;
|
|
55
|
+
extra?: any;
|
|
56
|
+
} | any, breadcrumb?: string): void;
|
|
41
57
|
/**
|
|
42
58
|
* This is called when the log handler is to terminate
|
|
43
59
|
*/
|
|
@@ -3,7 +3,8 @@ export * from "./enums/enums";
|
|
|
3
3
|
export * from "./interfaces/interfaces";
|
|
4
4
|
export * from "./loggers/loggers";
|
|
5
5
|
export * from "./models/models";
|
|
6
|
-
export * from "./utils/utils";
|
|
7
6
|
export * from "./logging.module.keyname";
|
|
8
7
|
export * from "./handlers/handlers";
|
|
8
|
+
export * from "./types/types";
|
|
9
|
+
export * from "./utils/utils";
|
|
9
10
|
export declare const LoggingModule: ModuleInterface;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class BreadcrumbModel {
|
|
2
|
+
/**
|
|
3
|
+
* The date at which the breadcrumb was created.
|
|
4
|
+
*/
|
|
5
|
+
date: Date;
|
|
6
|
+
/**
|
|
7
|
+
* The message identifying the breadcrumb.
|
|
8
|
+
*/
|
|
9
|
+
message: string;
|
|
10
|
+
/**
|
|
11
|
+
* Extra information attached to the breadcrumb.
|
|
12
|
+
*/
|
|
13
|
+
extra?: any;
|
|
14
|
+
constructor(message: string, extra?: any);
|
|
15
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { SeverityEnum } from "../enums/severity.enum";
|
|
2
|
+
import { BreadcrumbModel } from "./breadcrumb.model";
|
|
3
|
+
import { LogHighlights } from "../types/log-highlights.type";
|
|
2
4
|
/**
|
|
3
5
|
* The model that represents a log
|
|
4
6
|
*/
|
|
@@ -20,12 +22,22 @@ export declare class LogModel {
|
|
|
20
22
|
/**
|
|
21
23
|
* The module from which the log originated.
|
|
22
24
|
* By default it will be the application module.
|
|
25
|
+
* @deprecated: Use breadcrumbs instead.
|
|
23
26
|
*/
|
|
24
27
|
module: string;
|
|
25
28
|
/**
|
|
26
|
-
*
|
|
29
|
+
* Extras are additional data that provide extra context. They should be shown only when deeply investigating.
|
|
27
30
|
*/
|
|
28
31
|
extra: any;
|
|
32
|
+
/**
|
|
33
|
+
* The list of breadcrumbs that led to this log.
|
|
34
|
+
*/
|
|
35
|
+
breadcrumbs: BreadcrumbModel[];
|
|
36
|
+
/**
|
|
37
|
+
* This is an object that is data that you want to "highlights" and show as logs. Select and be careful about what
|
|
38
|
+
* you choose to highlight to avoid showing to many useless things.
|
|
39
|
+
*/
|
|
40
|
+
highlights: LogHighlights;
|
|
29
41
|
/**
|
|
30
42
|
* The model that represents a log
|
|
31
43
|
* @param severity The log severity.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './log-highlights.type';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/logging",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.371",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/logging.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/logging.module.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"test:cov": "jest --coverage"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@pristine-ts/common": "^0.0.
|
|
16
|
-
"@pristine-ts/configuration": "^0.0.
|
|
15
|
+
"@pristine-ts/common": "^0.0.371",
|
|
16
|
+
"@pristine-ts/configuration": "^0.0.371",
|
|
17
17
|
"date-fns": "^2.30.0"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"src/*.{js,ts}"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "b15f627fcefc822ba75ab4e22568d8cc9aa3e80a"
|
|
62
62
|
}
|