@oslo-flanders/core 0.0.13-alpha.0 → 0.0.15-alpha.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.
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WinstonLoggerFactory = void 0;
|
|
4
4
|
const winston_1 = require("winston");
|
|
5
5
|
const WinstonLogger_1 = require("./WinstonLogger");
|
|
6
|
-
const { combine,
|
|
6
|
+
const { combine, printf } = winston_1.format;
|
|
7
7
|
const messageFormat = printf(({ level, message, messageTimestamp }) => `${new Date(Date.now()).toISOString()} ${level}: ${message}`);
|
|
8
8
|
class WinstonLoggerFactory {
|
|
9
9
|
constructor(level) {
|
|
@@ -13,7 +13,7 @@ class WinstonLoggerFactory {
|
|
|
13
13
|
return new WinstonLogger_1.WinstonLogger((0, winston_1.createLogger)({
|
|
14
14
|
level: this.level,
|
|
15
15
|
transports: this.createTransports(),
|
|
16
|
-
format: combine(
|
|
16
|
+
format: combine(messageFormat),
|
|
17
17
|
}));
|
|
18
18
|
}
|
|
19
19
|
createTransports() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslo-flanders/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15-alpha.0",
|
|
4
4
|
"description": "Core interfaces and utilities",
|
|
5
5
|
"author": "Digitaal Vlaanderen <https://data.vlaanderen.be/id/organisatie/OVO002949>",
|
|
6
6
|
"homepage": "https://github.com/informatievlaanderen/OSLO-UML-Transformer/tree/main/packages/oslo-core#readme",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"@types/streamify-string": "^1.0.0",
|
|
50
50
|
"@types/tmp": "^0.2.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "b8a15c4c91863a99770fcd716ca0ba1ead9bd85c"
|
|
53
53
|
}
|