@adviser/cement 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- package/logger.d.ts +2 -0
- package/logger.d.ts.map +1 -1
- package/logger.test.js +100 -0
- package/logger.test.js.map +1 -1
- package/logger_impl.d.ts +19 -1
- package/logger_impl.d.ts.map +1 -1
- package/logger_impl.js +82 -21
- package/logger_impl.js.map +1 -1
- package/package.json +1 -1
- package/test/mock_logger.d.ts.map +1 -1
- package/test/mock_logger.js +8 -1
- package/test/mock_logger.js.map +1 -1
package/logger.d.ts
CHANGED
@@ -6,6 +6,8 @@ export declare enum Level {
|
|
6
6
|
}
|
7
7
|
export interface LoggerInterface<R> {
|
8
8
|
Module(key: string): R;
|
9
|
+
EnableLevel(level: Level, ...modules: string[]): R;
|
10
|
+
DisableLevel(level: Level, ...modules: string[]): R;
|
9
11
|
SetDebug(...modules: (string | string[])[]): R;
|
10
12
|
Str(key: string, value: string): R;
|
11
13
|
Error(): R;
|
package/logger.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;IAEvB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;IACnD,YAA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
|
15
15
|
out: logCollector,
|
16
16
|
sys: (0, web_sys_abstraction_1.WebSysAbstraction)({ TimeMode: sys_abstraction_1.TimeMode.STEP }),
|
17
|
+
levelHandler: new logger_impl_1.LevelHandlerImpl(),
|
17
18
|
});
|
18
19
|
});
|
19
20
|
describe("Error()", () => {
|
@@ -258,5 +259,104 @@ describe("TestLogger", () => {
|
|
258
259
|
},
|
259
260
|
]);
|
260
261
|
});
|
262
|
+
it("top should enable modules wildcard", async () => {
|
263
|
+
const log = logger;
|
264
|
+
const xxxModule = log.With().Module("xxx").Logger();
|
265
|
+
log.Debug().Msg("log-Msg0");
|
266
|
+
xxxModule.Debug().Msg("xxx-log-Msg0");
|
267
|
+
log.EnableLevel(logger_1.Level.DEBUG);
|
268
|
+
log.Debug().Msg("log-Msg");
|
269
|
+
xxxModule.Debug().Msg("xxx-log-Msg");
|
270
|
+
const yyyModule = log.With().Module("yyy").Logger();
|
271
|
+
yyyModule.Debug().Msg("yyy-log-Msg");
|
272
|
+
log.DisableLevel(logger_1.Level.DEBUG);
|
273
|
+
yyyModule.Debug().Msg("yyy-log-Msg1");
|
274
|
+
log.Debug().Msg("log-Msg1");
|
275
|
+
xxxModule.Debug().Msg("xxx-log-Msg1");
|
276
|
+
await log.Flush();
|
277
|
+
expect(logCollector.Logs()).toEqual([
|
278
|
+
{
|
279
|
+
level: "debug",
|
280
|
+
msg: "log-Msg",
|
281
|
+
},
|
282
|
+
{
|
283
|
+
level: "debug",
|
284
|
+
module: "xxx",
|
285
|
+
msg: "xxx-log-Msg",
|
286
|
+
},
|
287
|
+
{
|
288
|
+
level: "debug",
|
289
|
+
module: "yyy",
|
290
|
+
msg: "yyy-log-Msg",
|
291
|
+
},
|
292
|
+
]);
|
293
|
+
});
|
294
|
+
it("down should enable modules wildcard", async () => {
|
295
|
+
const log = logger;
|
296
|
+
const xxxModule = log.With().Module("xxx").Logger();
|
297
|
+
log.Debug().Msg("log-Msg");
|
298
|
+
xxxModule.Debug().Msg("xxx-log-Msg");
|
299
|
+
xxxModule.EnableLevel(logger_1.Level.DEBUG);
|
300
|
+
log.Debug().Msg("log-Msg1");
|
301
|
+
xxxModule.Debug().Msg("xxx-log-Msg1");
|
302
|
+
const yyyModule = log.With().Module("yyy").Logger();
|
303
|
+
yyyModule.Debug().Msg("yyy-log-Msg");
|
304
|
+
yyyModule.DisableLevel(logger_1.Level.DEBUG);
|
305
|
+
log.Debug().Msg("log-Msg2");
|
306
|
+
xxxModule.Debug().Msg("xxx-log-Msg2");
|
307
|
+
yyyModule.Debug().Msg("yyy-log-Msg2");
|
308
|
+
await log.Flush();
|
309
|
+
expect(logCollector.Logs()).toEqual([
|
310
|
+
{
|
311
|
+
level: "debug",
|
312
|
+
msg: "log-Msg1",
|
313
|
+
},
|
314
|
+
{
|
315
|
+
level: "debug",
|
316
|
+
module: "xxx",
|
317
|
+
msg: "xxx-log-Msg1",
|
318
|
+
},
|
319
|
+
{
|
320
|
+
level: "debug",
|
321
|
+
module: "yyy",
|
322
|
+
msg: "yyy-log-Msg",
|
323
|
+
},
|
324
|
+
]);
|
325
|
+
});
|
326
|
+
it("global set debug on modules", async () => {
|
327
|
+
const log = logger;
|
328
|
+
const xxxModule = log.With().Module("xxx").Logger();
|
329
|
+
log.Debug().Msg("log-Msg");
|
330
|
+
xxxModule.Debug().Msg("xxx-log-Msg");
|
331
|
+
await log.Flush();
|
332
|
+
expect(logCollector.Logs()).toEqual([]);
|
333
|
+
xxxModule.EnableLevel(logger_1.Level.DEBUG, "yyy", "xxx");
|
334
|
+
const yyyModule = log.With().Module("yyy").Logger();
|
335
|
+
yyyModule.Debug().Msg("yyy-log-Msg");
|
336
|
+
xxxModule.Debug().Msg("xxx-log-Msg1");
|
337
|
+
log.Debug().Msg("log-Msg1");
|
338
|
+
yyyModule.DisableLevel(logger_1.Level.DEBUG, "yyy");
|
339
|
+
yyyModule.Debug().Msg("yyy-log-Msg1");
|
340
|
+
xxxModule.Debug().Msg("xxx-log-Msg2");
|
341
|
+
log.Debug().Msg("log-Msg3");
|
342
|
+
await log.Flush();
|
343
|
+
expect(logCollector.Logs()).toEqual([
|
344
|
+
{
|
345
|
+
level: "debug",
|
346
|
+
module: "yyy",
|
347
|
+
msg: "yyy-log-Msg",
|
348
|
+
},
|
349
|
+
{
|
350
|
+
level: "debug",
|
351
|
+
module: "xxx",
|
352
|
+
msg: "xxx-log-Msg1",
|
353
|
+
},
|
354
|
+
{
|
355
|
+
level: "debug",
|
356
|
+
module: "xxx",
|
357
|
+
msg: "xxx-log-Msg2",
|
358
|
+
},
|
359
|
+
]);
|
360
|
+
});
|
261
361
|
});
|
262
362
|
//# sourceMappingURL=logger.test.js.map
|
package/logger.test.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logger.test.js","sourceRoot":"","sources":["../src/logger.test.ts"],"names":[],"mappings":";;AAAA,+CAA2C;AAC3C,wDAAoD;AAEpD,qCAAyC;AACzC,uDAA6C;AAC7C,mEAA8D;AAC9D,iEAAqD;AAErD,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,YAA0B,CAAC;IAC/B,IAAI,MAAc,CAAC;IAEnB,UAAU,CAAC,GAAG,EAAE;QACd,YAAY,GAAG,IAAI,4BAAY,EAAE,CAAC;QAClC,MAAM,GAAG,IAAI,wBAAU,CAAC;YACtB,GAAG,EAAE,YAAY;YACjB,GAAG,EAAE,IAAA,uCAAiB,EAAC,EAAE,QAAQ,EAAE,0BAAQ,CAAC,IAAI,EAAE,CAAC;SACpD,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;YACvD,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACvB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;YACrB,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CA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AW,CAAC,cAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAEjD,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QACpD,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAErC,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAEtC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAE5B,SAAS,CAAC,YAAY,CAAC,cAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC3C,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAEtC,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAEtC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAE5B,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QAClB,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;YAClC;gBACE,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,aAAa;aACnB;YACD;gBACE,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,cAAc;aACpB;YACD;gBACE,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,cAAc;aACpB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/logger_impl.d.ts
CHANGED
@@ -1,10 +1,24 @@
|
|
1
1
|
import { AsError, Level, Logger, WithLogger } from "./logger";
|
2
2
|
import { SysAbstraction } from "./sys_abstraction";
|
3
3
|
type JsonRecord = Record<string, string | number | boolean | unknown>;
|
4
|
+
export interface LevelHandler {
|
5
|
+
enableLevel(level: Level, ...modules: string[]): void;
|
6
|
+
disableLevel(level: Level, ...modules: string[]): void;
|
7
|
+
setDebug(...modules: (string | string[])[]): void;
|
8
|
+
isEnabled(ilevel: unknown, module: unknown): boolean;
|
9
|
+
}
|
10
|
+
export declare class LevelHandlerImpl implements LevelHandler {
|
11
|
+
readonly _globalLevels: Set<Level>;
|
12
|
+
readonly _modules: Map<string, Set<Level>>;
|
13
|
+
enableLevel(level: Level, ...modules: string[]): void;
|
14
|
+
disableLevel(level: Level, ...modules: string[]): void;
|
15
|
+
forModules(level: Level, fnAction: (p: string) => void, ...modules: (string | string[])[]): void;
|
16
|
+
setDebug(...modules: (string | string[])[]): void;
|
17
|
+
isEnabled(ilevel: unknown, module: unknown): boolean;
|
18
|
+
}
|
4
19
|
export declare class LogWriter {
|
5
20
|
readonly _out: WritableStream<Uint8Array>;
|
6
21
|
readonly _toFlush: Array<() => Promise<void>>;
|
7
|
-
readonly modules: Set<string>;
|
8
22
|
constructor(out: WritableStream<Uint8Array>);
|
9
23
|
write(encoded: Uint8Array): void;
|
10
24
|
_flushIsRunning: boolean;
|
@@ -16,13 +30,17 @@ export interface LoggerImplParams {
|
|
16
30
|
readonly logWriter?: LogWriter;
|
17
31
|
readonly sys?: SysAbstraction;
|
18
32
|
readonly withAttributes?: JsonRecord;
|
33
|
+
readonly levelHandler?: LevelHandler;
|
19
34
|
}
|
20
35
|
export declare class LoggerImpl implements Logger {
|
21
36
|
readonly _sys: SysAbstraction;
|
22
37
|
readonly _attributes: JsonRecord;
|
23
38
|
readonly _withAttributes: JsonRecord;
|
24
39
|
readonly _logWriter: LogWriter;
|
40
|
+
readonly _levelHandler: LevelHandler;
|
25
41
|
constructor(params?: LoggerImplParams);
|
42
|
+
EnableLevel(level: Level, ...modules: string[]): Logger;
|
43
|
+
DisableLevel(level: Level, ...modules: string[]): Logger;
|
26
44
|
Module(key: string): Logger;
|
27
45
|
SetDebug(...modules: (string | string[])[]): Logger;
|
28
46
|
Timestamp(): Logger;
|
package/logger_impl.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logger_impl.d.ts","sourceRoot":"","sources":["../src/logger_impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC;AAEtE,
|
1
|
+
{"version":3,"file":"logger_impl.d.ts","sourceRoot":"","sources":["../src/logger_impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC;AAEtE,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACtD,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACvD,QAAQ,CAAC,GAAG,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;IAClD,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC;CACtD;AAED,qBAAa,gBAAiB,YAAW,YAAY;IACnD,QAAQ,CAAC,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,CAAkD;IACpF,QAAQ,CAAC,QAA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,KAAK,EAAE,MAAM,GAAG,MAAM;IAKpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAM5B,IAAI,IAAI,UAAU;IAelB,gBAAgB,CAAC,EAAE,EAAE,MAAM,KAAK,GAAG,KAAK;IAQxC,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO;CAqBhC"}
|
package/logger_impl.js
CHANGED
@@ -1,13 +1,67 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.LoggerImpl = exports.LogWriter = void 0;
|
3
|
+
exports.LoggerImpl = exports.LogWriter = exports.LevelHandlerImpl = void 0;
|
4
4
|
const logger_1 = require("./logger");
|
5
5
|
const web_sys_abstraction_1 = require("./web/web_sys_abstraction");
|
6
6
|
const encoder = new TextEncoder();
|
7
|
+
class LevelHandlerImpl {
|
8
|
+
constructor() {
|
9
|
+
this._globalLevels = new Set([logger_1.Level.INFO, logger_1.Level.ERROR, logger_1.Level.WARN]);
|
10
|
+
this._modules = new Map();
|
11
|
+
}
|
12
|
+
enableLevel(level, ...modules) {
|
13
|
+
if (modules.length == 0) {
|
14
|
+
this._globalLevels.add(level);
|
15
|
+
return;
|
16
|
+
}
|
17
|
+
this.forModules(level, (p) => {
|
18
|
+
this._modules.set(p, new Set([...this._globalLevels, level]));
|
19
|
+
}, ...modules);
|
20
|
+
}
|
21
|
+
disableLevel(level, ...modules) {
|
22
|
+
if (modules.length == 0) {
|
23
|
+
this._globalLevels.delete(level);
|
24
|
+
return;
|
25
|
+
}
|
26
|
+
this.forModules(level, (p) => {
|
27
|
+
this._modules.delete(p);
|
28
|
+
}, ...modules);
|
29
|
+
}
|
30
|
+
forModules(level, fnAction, ...modules) {
|
31
|
+
for (const m of modules.flat()) {
|
32
|
+
const parts = m
|
33
|
+
.split(",")
|
34
|
+
.map((s) => s.trim())
|
35
|
+
.filter((s) => s.length > 0);
|
36
|
+
for (const p of parts) {
|
37
|
+
fnAction(p);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
setDebug(...modules) {
|
42
|
+
this.forModules(logger_1.Level.DEBUG, (p) => {
|
43
|
+
this._modules.set(p, new Set([...this._globalLevels, logger_1.Level.DEBUG]));
|
44
|
+
}, ...modules);
|
45
|
+
}
|
46
|
+
isEnabled(ilevel, module) {
|
47
|
+
const level = ilevel;
|
48
|
+
if (module !== undefined) {
|
49
|
+
const levels = this._modules.get(module);
|
50
|
+
if (levels && levels.has(level)) {
|
51
|
+
return true;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
if (level === undefined) {
|
55
|
+
return true;
|
56
|
+
}
|
57
|
+
return this._globalLevels.has(level);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.LevelHandlerImpl = LevelHandlerImpl;
|
61
|
+
const levelSingleton = new LevelHandlerImpl();
|
7
62
|
class LogWriter {
|
8
63
|
constructor(out) {
|
9
64
|
this._toFlush = [];
|
10
|
-
this.modules = new Set();
|
11
65
|
this._flushIsRunning = false;
|
12
66
|
this._flushDoneFns = Array();
|
13
67
|
this._out = out;
|
@@ -80,6 +134,20 @@ class LoggerImpl {
|
|
80
134
|
this._withAttributes = Object.assign({}, params.withAttributes);
|
81
135
|
}
|
82
136
|
this._attributes = Object.assign({}, this._withAttributes);
|
137
|
+
if (params.levelHandler) {
|
138
|
+
this._levelHandler = params.levelHandler;
|
139
|
+
}
|
140
|
+
else {
|
141
|
+
this._levelHandler = levelSingleton;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
EnableLevel(level, ...modules) {
|
145
|
+
this._levelHandler.enableLevel(level, ...modules);
|
146
|
+
return this;
|
147
|
+
}
|
148
|
+
DisableLevel(level, ...modules) {
|
149
|
+
this._levelHandler.disableLevel(level, ...modules);
|
150
|
+
return this;
|
83
151
|
}
|
84
152
|
Module(key) {
|
85
153
|
this._attributes["module"] = key;
|
@@ -87,15 +155,7 @@ class LoggerImpl {
|
|
87
155
|
return this;
|
88
156
|
}
|
89
157
|
SetDebug(...modules) {
|
90
|
-
|
91
|
-
const parts = m
|
92
|
-
.split(",")
|
93
|
-
.map((s) => s.trim())
|
94
|
-
.filter((s) => s.length > 0);
|
95
|
-
for (const p of parts) {
|
96
|
-
this._logWriter.modules.add(p);
|
97
|
-
}
|
98
|
-
}
|
158
|
+
this._levelHandler.setDebug(...modules);
|
99
159
|
return this;
|
100
160
|
}
|
101
161
|
Timestamp() {
|
@@ -159,6 +219,7 @@ class LoggerImpl {
|
|
159
219
|
return new WithLoggerBuilder(new LoggerImpl({
|
160
220
|
logWriter: this._logWriter,
|
161
221
|
sys: this._sys,
|
222
|
+
levelHandler: this._levelHandler,
|
162
223
|
withAttributes: Object.assign({ module: this._attributes["module"] }, this._withAttributes),
|
163
224
|
}));
|
164
225
|
}
|
@@ -172,15 +233,7 @@ class LoggerImpl {
|
|
172
233
|
}
|
173
234
|
Msg(...args) {
|
174
235
|
const error = this._resetAttributes(() => {
|
175
|
-
|
176
|
-
if (this._attributes["level"] === logger_1.Level.DEBUG) {
|
177
|
-
if (typeof this._attributes["module"] !== "string") {
|
178
|
-
skipWrite = true;
|
179
|
-
}
|
180
|
-
else if (!this._logWriter.modules.has(this._attributes["module"])) {
|
181
|
-
skipWrite = true;
|
182
|
-
}
|
183
|
-
}
|
236
|
+
const doWrite = this._levelHandler.isEnabled(this._attributes["level"], this._attributes["module"]);
|
184
237
|
this._attributes["msg"] = args.join(" ");
|
185
238
|
if (typeof this._attributes["msg"] === "string" && !this._attributes["msg"].trim().length) {
|
186
239
|
delete this._attributes["msg"];
|
@@ -189,7 +242,7 @@ class LoggerImpl {
|
|
189
242
|
this.Timestamp();
|
190
243
|
}
|
191
244
|
const str = JSON.stringify(this._attributes);
|
192
|
-
if (
|
245
|
+
if (doWrite) {
|
193
246
|
const encoded = encoder.encode(str + "\n");
|
194
247
|
this._logWriter.write(encoded);
|
195
248
|
}
|
@@ -209,6 +262,14 @@ class WithLoggerBuilder {
|
|
209
262
|
Object.assign(this._li._withAttributes, this._li._attributes);
|
210
263
|
return this._li;
|
211
264
|
}
|
265
|
+
EnableLevel(level, ...modules) {
|
266
|
+
this._li._levelHandler.enableLevel(level, ...modules);
|
267
|
+
return this;
|
268
|
+
}
|
269
|
+
DisableLevel(level, ...modules) {
|
270
|
+
this._li._levelHandler.enableLevel(level, ...modules);
|
271
|
+
return this;
|
272
|
+
}
|
212
273
|
Module(key) {
|
213
274
|
this._li.Module(key);
|
214
275
|
return this;
|
package/logger_impl.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logger_impl.js","sourceRoot":"","sources":["../src/logger_impl.ts"],"names":[],"mappings":";;;AACA,qCAA8D;AAC9D,mEAA8D;AAG9D,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;AAIlC,MAAa,SAAS;IAKpB,YAAY,GAA+B;QAHlC,aAAQ,GAA+B,EAAE,CAAC;QAC1C,YAAO,GAAgB,IAAI,GAAG,EAAE,CAAC;QAwB1C,oBAAe,GAAG,KAAK,CAAC;QACxB,kBAAa,GAAG,KAAK,EAAc,CAAC;QAtBlC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,OAAmB;QACvB,MAAM,EAAE,GAAG,KAAK,IAAI,EAAE;YAGpB,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;gBACrC,MAAM,MAAM,CAAC,KAAK,CAAC;gBACnB,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAC5B,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;YAC7B,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;YACrC,CAAC;QAEH,CAAC,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvB,IAAI,CAAC,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AAK,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,GAAG,CAAC,GAAW,EAAE,IAAY;QAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,CAAC,GAAW,EAAE,KAAa;QAC/B,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mock_logger.d.ts","sourceRoot":"","sources":["../../src/test/mock_logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACrC;AAED,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE;IAClC,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC,GAAG,gBAAgB,
|
1
|
+
{"version":3,"file":"mock_logger.d.ts","sourceRoot":"","sources":["../../src/test/mock_logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACrC;AAED,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE;IAClC,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC,GAAG,gBAAgB,CAqBnB"}
|
package/test/mock_logger.js
CHANGED
@@ -12,7 +12,14 @@ function MockLogger(params) {
|
|
12
12
|
else if (Array.isArray(params === null || params === void 0 ? void 0 : params.moduleName)) {
|
13
13
|
modNames = [...params.moduleName, ...modNames];
|
14
14
|
}
|
15
|
-
const logger = new logger_impl_1.LoggerImpl({
|
15
|
+
const logger = new logger_impl_1.LoggerImpl({
|
16
|
+
out: lc,
|
17
|
+
sys: params === null || params === void 0 ? void 0 : params.sys,
|
18
|
+
levelHandler: new logger_impl_1.LevelHandlerImpl(),
|
19
|
+
})
|
20
|
+
.With()
|
21
|
+
.Module(modNames[0])
|
22
|
+
.Logger();
|
16
23
|
!(params === null || params === void 0 ? void 0 : params.disableDebug) && logger.SetDebug(...modNames);
|
17
24
|
return {
|
18
25
|
logCollector: lc,
|
package/test/mock_logger.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mock_logger.js","sourceRoot":"","sources":["../../src/test/mock_logger.ts"],"names":[],"mappings":";;;AACA,
|
1
|
+
{"version":3,"file":"mock_logger.js","sourceRoot":"","sources":["../../src/test/mock_logger.ts"],"names":[],"mappings":";;;AACA,gDAA8D;AAE9D,mDAA+C;AAO/C,SAAgB,UAAU,CAAC,MAI1B;IACC,MAAM,EAAE,GAAG,IAAI,4BAAY,EAAE,CAAC;IAC9B,IAAI,QAAQ,GAAG,CAAC,YAAY,CAAC,CAAC;IAC9B,IAAI,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,CAAA,KAAK,QAAQ,EAAE,CAAC;QAC3C,QAAQ,GAAG,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,CAAC,CAAC;IAClC,CAAC;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,CAAC,EAAE,CAAC;QAC7C,QAAQ,GAAG,CAAC,GAAG,MAAO,CAAC,UAAU,EAAE,GAAG,QAAQ,CAAC,CAAC;IAClD,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,wBAAU,CAAC;QAC5B,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG;QAChB,YAAY,EAAE,IAAI,8BAAgB,EAAE;KACrC,CAAC;SACC,IAAI,EAAE;SACN,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SACnB,MAAM,EAAE,CAAC;IACZ,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,CAAA,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;IACtD,OAAO;QACL,YAAY,EAAE,EAAE;QAChB,MAAM;KACP,CAAC;AACJ,CAAC;AAzBD,gCAyBC"}
|